Sign in

Type: RefreshSessionOptions

Options used when refreshing an existing MonoCloud session.

Properties

PropertyTypeDescription
fetchUserInfo?booleanWhen enabled, user profile data is fetched from the UserInfo endpoint and merged into the session user object.
filteredIdTokenClaims?string[]List of ID token claims to remove before storing the session.
idTokenClockSkew?numberClock skew adjustment (in seconds) applied when validating ID token timestamps against the authorization server.
idTokenClockTolerance?numberAdditional allowed clock tolerance (in seconds) when validating time-based ID token claims such as exp, iat, and nbf.
jwks?JwksJSON Web Key Set used to validate the ID token signature. If not provided, the JWKS is automatically fetched from the authorization server metadata.
onSessionCreating?OnCoreSessionCreatingCallback invoked before a session is created or updated. Allows customization or enrichment of the session.
refreshGrantOptions?RefreshGrantOptionsOptions applied to the refresh token grant request, such as requesting tokens for specific resources or scopes.
strictProfileSync?booleanWhen enabled, replaces the existing session user profile with a freshly constructed profile derived from the latest ID token and/or UserInfo response.
validateIdToken?booleanDetermines whether the ID token signature and claims should be validated. Disabling validation is not recommended except for advanced or controlled environments.
© 2024 MonoCloud. All rights reserved.