Skip to content

RegisterResult

RegisterResult = { status: "verified"; tokens: AuthTokens; user: UserInfo; } | { status: "pendingVerification"; }

Defined in: packages/auth/src/types/results.ts:53

Result of AuthClient.register.

The backend may either issue tokens immediately (e.g. when email verification is disabled) or only trigger a verification email. Consumers should switch on status to handle both flows.