Skip to content

Type Alias: AuthEvent

Type Alias: AuthEvent

AuthEvent = { tokens: TokenPair; type: "authenticated"; user: User; } | { reason: LogoutReason; type: "logged_out"; } | { tokens: TokenPair; type: "token_refreshed"; } | { email: string; type: "requires_two_factor"; } | { type: "session_expired"; } | { snapshot: AuthSnapshot; status: AuthStatus; type: "status_changed"; } | { organizationId: string; tokens: TokenPair; type: "org_switched"; } | { error: Error; type: "error"; }

Defined in: auth-client/src/core/types.ts:281