Skip to main content

Interface: AuthSession

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

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:67

JWT access token


expiresAt

expiresAt: number

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

Access token expiry timestamp (Unix ms)


refreshToken

refreshToken: string

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

Opaque refresh token


scope

scope: string[]

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

Granted scopes