Sign in

Type: MonoCloudSession

Represents an authenticated session, containing the authenticated user profile along with the tokens and metadata issued during authentication.

Indexable

[key: string]: unknown

Additional custom properties attached to the session.

These may be added via hooks such as onSessionCreating.

Properties

PropertyTypeDescription
accessTokens?AccessToken[]Access tokens associated with the session. Multiple tokens may exist when access tokens are issued for different resources or scope sets.
authorizedScopes?stringSpace-separated list of scopes authorized for the session.
idToken?stringOptional ID token issued during authentication.
refreshToken?stringOptional refresh token used to obtain new access tokens without requiring the user to re-authenticate.
userMonoCloudUserThe authenticated user profile, typically derived from ID token claims and/or the UserInfo endpoint.
© 2024 MonoCloud. All rights reserved.