Skip to content

Interface: AuthSnapshot

Interface: AuthSnapshot

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

Snapshot of the client’s reactive state. Framework adapters subscribe to changes and project this into their primitive. Stable identity: unchanged status + claims yields the same object reference so useSyncExternalStore-style hooks don’t re-render unnecessarily.

Properties

claims

claims: DecodedAccessToken | null

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


error

error: Error | null

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


isImpersonating

isImpersonating: boolean

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


ready

ready: boolean

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


status

status: AuthStatus

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


user

user: { email: string; id: string; } | null

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