Skip to main content

Interface: AuthState

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

Full authentication state.

Extended by

Properties

error

error: null | string

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

Error message if authentication failed


isAuthenticated

isAuthenticated: boolean

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

Whether the user is authenticated


isLoading

isLoading: boolean

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

Whether auth state is being loaded/verified


session

session: null | AuthSession

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

Session tokens (null if not authenticated)


user

user: null | ChiveUser

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

Authenticated user (null if not authenticated)