Skip to main content
The SDK is split into focused pages. Start with the surface you need:

Quick Ave

startQuickSignIn, handleQuickCallback, getQuickIdentity.

OAuth and PKCE

buildAuthorizeUrl, exchangeCode, refreshToken, startPkceLogin, server helpers.

Ave Session

AveSession, storage adapters, Convex helpers, Svelte helpers, refresh coordination.

Connector

buildConnectorUrl, exchangeDelegatedToken, startConnectorFlow, delegation management.

Business workspaces

organizationId, org-context tokens, workspace picker and creation helpers.

Signing

createSignatureRequest, getSignatureStatus, verifySignature, openSigningPopup.

Identity keys

getIdentityKey, encryptPayloadForHandle, decryptWrappedPayload, URL-safe payload params.

Quick Ave

No dashboard. No client IDs. No environment variables. No redirect configuration. Protect a page:
Callback route — create a page at /ave/callback that does exactly one thing:
That’s it. Quick Ave derives a client ID from your origin, handles PKCE, stores the token locally, and redirects back to where the user was. Nothing to register.
Evaluating whether this is easier than Clerk or Auth0? It is — because there’s no dashboard step at all. Ship a working prototype in under 2 minutes, then upgrade to the full OIDC flow when you’re ready for refresh tokens, app branding, or confidential flows.

startQuickSignIn(options?)

Generates PKCE parameters, saves the return-to URL, and redirects the user to Ave.

handleQuickCallback(options?)

Convenience wrapper: calls finishQuickSignIn, then redirects the user to where they were before startQuickSignIn was called.

finishQuickSignIn(options?)

Exchanges the authorization code that Ave appended to your callback URL. Returns null when no code param is present — safe to call on every page load.

getQuickIdentity(storageKey?)

Returns the cached QuickIdentity from localStorage, or null when not signed in or the token has expired locally. Makes no network request.

clearQuickIdentity(storageKey?)

Removes the stored QuickIdentity (sign-out).

checkQuickSession(options?)

Validates the current token against the Ave server. Use this when you need a real-time check rather than relying on the local expiry.

startQuickSessionMonitor(options?)

Starts a periodic checkQuickSession loop. Fires onLoginRequired and stops itself when the session is no longer valid.

QuickIdentity

For a full walkthrough including Convex wiring, session monitoring, and the upgrade path see the Quick Ave guide.
Last modified on May 23, 2026