Skip to content

AuthState

Defined in: client/src/types.ts:68

Reactive authentication state exposed by OidcClient.

error: Error | null

Defined in: client/src/types.ts:76

The most recent authentication error, or null if none.


isAuthenticated: boolean

Defined in: client/src/types.ts:72

Whether the user is currently authenticated.


isLoading: boolean

Defined in: client/src/types.ts:74

Whether initialization or a token exchange is in progress.


tokens: AuthTokens

Defined in: client/src/types.ts:78

Current set of OAuth 2.0 tokens.


user: AuthUser | null

Defined in: client/src/types.ts:70

The authenticated user, or null if not logged in.