You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e3ab4e0
Browse filesBrowse the repository at this point in the historyBrowse files
// The mobile sign-in hand-off (maintainer ruling, option B): better-auth's
287
+
// `one-time-token` plugin, mounted only when `trustedAppSchemes` registers
288
+
// an app scheme, plus the ObjectStack hand-off that is its only minter.
289
+
// `one-time-token-handoff.ts` carries the interception argument.
290
+
{route: 'GET /api/v1/auth/one-time-token/generate',family: 'one-time-token',source: 'better-auth',disposition: 'server-only',requires: 'oneTimeToken',note: 'published by the catch-all and refused to every client request (disableClientRequest: 400 with a session, 401 without); the only caller is the in-process hand-off, which binds the token it mints to the app shell\'s PKCE challenge'},
291
+
{route: 'POST /api/v1/auth/one-time-token/verify',family: 'one-time-token',source: 'better-auth',disposition: 'public',requires: 'oneTimeToken',note: 'no SDK method builds this URL — the mobile app shell (or the Console in its WebView) redeems a hand-off token here with no session: body { token: "T.code_verifier" }, answering the vendor { session, user } plus the session cookie, once, within one minute; a token without the verifier whose challenge started the hand-off (an intercepted callback) answers the vendor 400 and consumes nothing'},
292
+
{route: 'GET /api/v1/auth/one-time-token/handoff',family: 'one-time-token',source: 'objectstack',disposition: 'server-only',requires: 'oneTimeToken',note: 'no SDK method builds this URL — the mobile app shell opens it in the system browser after a sign-in there; session required. Closed query set { redirect_uri, code_challenge, code_challenge_method }: answers 302 to a redirect_uri whose scheme trustedAppSchemes registers, with a single-use one-minute token bound to the S256 code_challenge; an unregistered scheme answers 400 with no redirect. The mount is unconditional; with no registered scheme every target is refused'},
0 commit comments