Skip to content

SignInResult

Fields

userUser
tokenString

JWT token — also set as the auth HttpOnly cookie.

localeLocale

Content locale the freshly minted session carries: the language the visitor was explicitly browsing in while signed out, falling back to the account's saved default language. Null when no cookie session was established (embed business-pinned tokens, re-redeeming while already signed in) or when the session carries no locale claim. Clients should apply it live so the UI switches to the signed-in user's language without a reload.

hasPasskeyBoolean

Whether the signed-in account has a passkey, counting one redeemAuthCode just attached. Set by redeemAuthCode only, so a client can offer to add one to an account that signed in with a code because it had none. Null from every other sign-in.

errors[OperationError!]!

Used in