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:/ave/callback that does exactly one thing:
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.
