Sign in

Type: SignInOptions

Options used to customize the sign-in flow.

Properties

PropertyTypeDescription
acrValues?string[]Authentication Context Class Reference (ACR) values requesting specific authentication assurance levels or methods.
appState?ApplicationStateCustom application state preserved across the authentication round-trip. The value is provided to the OnSessionCreating hook when the session is constructed.
authenticatorHint?AuthenticatorsSpecifies the preferred authenticator or identity provider to use for sign-in.
display?DisplayOptionsPreferred display mode for the authentication UI.
loginHint?stringHint identifying the user (for example, an email or username). Used to pre-fill or optimize the sign-in experience. Example "user@example.com"
maxAge?numberMaximum allowed time (in seconds) since the user's last authentication. Used to force re-authentication if the time since the last sign-in exceeds this value.
mode?InteractionModeDetermines the interaction mode for the sign-in flow.
prompt?PromptSpecifies the desired authentication interaction behavior.
resource?stringSpace-separated resources the access token should be scoped to for this specific sign-in. Merged with defaultAuthParams.resource and any indicator resources configured on the client.
returnUrl?stringRelative URL to navigate to after sign-in completes.
scopes?stringSpace-separated scopes requested from the authorization server for this specific sign-in. Merged with defaultAuthParams.scopes and any indicator scopes configured on the client.
signUp?booleanWhen true, starts the sign-up (user registration) flow instead of a standard sign-in. Equivalent to setting prompt: 'create'. If both are provided, signUp: true wins.
uiLocales?stringPreferred locale(s) for the sign-in UI. Example "en-US"
© 2024 MonoCloud. All rights reserved.