Skip to main content

Interface: AuthState

Defined in: web/lib/auth/types.ts:101

Full authentication state.

Extended by​

Properties​

error​

error: null | string

Defined in: web/lib/auth/types.ts:115

Error message if authentication failed


isAuthenticated​

isAuthenticated: boolean

Defined in: web/lib/auth/types.ts:103

Whether the user is authenticated


isLoading​

isLoading: boolean

Defined in: web/lib/auth/types.ts:106

Whether auth state is being loaded/verified


session​

session: null | AuthSession

Defined in: web/lib/auth/types.ts:112

Session tokens (null if not authenticated)


user​

user: null | ChiveUser

Defined in: web/lib/auth/types.ts:109

Authenticated user (null if not authenticated)