MonoCloud Authentication SDK
    Preparing search index...

    Options used when refreshing an existing MonoCloud session.

    interface RefreshSessionOptions {
        fetchUserInfo?: boolean;
        filteredIdTokenClaims?: string[];
        idTokenClockSkew?: number;
        idTokenClockTolerance?: number;
        jwks?: Jwks;
        onSessionCreating?: OnCoreSessionCreating;
        refreshGrantOptions?: RefreshGrantOptions;
        validateIdToken?: boolean;
    }
    Index

    Properties

    fetchUserInfo?: boolean

    When enabled, user profile data is fetched from the UserInfo endpoint and merged into the session user object.

    false
    
    filteredIdTokenClaims?: string[]

    List of ID token claims to remove before storing the session.

    idTokenClockSkew?: number

    Clock skew adjustment (in seconds) applied when validating ID token timestamps against the authorization server.

    idTokenClockTolerance?: number

    Additional allowed clock tolerance (in seconds) when validating time-based ID token claims such as exp, iat, and nbf.

    jwks?: Jwks

    JSON Web Key Set used to validate the ID token signature.

    If not provided, the JWKS is automatically fetched from the authorization server metadata.

    onSessionCreating?: OnCoreSessionCreating

    Callback invoked before a session is created or updated. Allows customization or enrichment of the session.

    refreshGrantOptions?: RefreshGrantOptions

    Options applied to the refresh token grant request, such as requesting tokens for specific resources or scopes.

    validateIdToken?: boolean

    Determines whether the ID token signature and claims should be validated. Disabling validation is not recommended except for advanced or controlled environments.

    true