Skip to main content

Interface: AuthSession

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

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

JWT access token


expiresAt

expiresAt: number

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

Access token expiry timestamp (Unix ms)


refreshToken

refreshToken: string

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

Opaque refresh token


scope

scope: string[]

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

Granted scopes