Session interface

Represents an authenticated session, containing user information and tokens.

Properties

accessToken

The current access token.

expiresAt

When the access token expires.

refreshToken

The current refresh token, when available.

role

The user's role for the session, when known.

user

The authenticated user.

Property Details

accessToken

The current access token.

accessToken: string

Property Value

string

expiresAt

When the access token expires.

expiresAt?: Date

Property Value

Date

refreshToken

The current refresh token, when available.

refreshToken?: null | string

Property Value

null | string

role

The user's role for the session, when known.

role?: string

Property Value

string

user

The authenticated user.

user: User

Property Value