Skip to main content

Interface: AuthSession

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

Authentication session tokens.

Remarks

Access tokens are short-lived JWTs (1 hour). Refresh tokens are opaque and long-lived (30 days).

Properties

accessToken

accessToken: string

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

JWT access token


expiresAt

expiresAt: number

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

Access token expiry timestamp (Unix ms)


refreshToken

refreshToken: string

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

Opaque refresh token


scope

scope: string[]

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

Granted scopes