Sign in

Type: AuthenticateOptions

Options used when authenticating a user via the Authorization Code flow.

Properties

PropertyTypeDescription
codeVerifier?stringPKCE code verifier associated with the authorization request.
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.
idTokenMaxAge?numberMaximum allowed authentication age (in seconds) for the ID token.
idTokenNonce?stringNonce value expected in the ID token. Used to prevent replay attacks.
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.
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.