Session interface
Represents an authenticated session, containing user information and tokens.
Properties
| access |
The current access token. |
| expires |
When the access token expires. |
| refresh |
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