SessionVerification
An interface that represents the state of the session verification process.
Properties
- Name
status- Type
'needs_first_factor' | 'needs_second_factor' | 'complete'- Description
The current state of the session verification.
- Name
level- Type
'first_factor' | 'second_factor' | 'multi_factor'- Description
The requested level of the session verification.
- Name
session- Type
Session- Description
The
Sessionobject that the session verification is attached to.
- Name
firstFactorVerification- Type
Verification- Description
The state of the verification process for the selected . Initially, this property contains an empty
Verificationobject, since there is no first factor selected. You need to call theprepareFirstFactorVerification()method in order to start the verification process.
- Name
secondFactorVerification- Type
Verification- Description
The state of the verification process for the selected . Initially, this property contains an empty
Verificationobject, since there is no second factor selected. For thephone_codestrategy, you need to call theprepareSecondFactorVerification()method in order to start the verification process. For thetotporbackup_codestrategies, you can directly attempt the verification by calling theattemptSecondFactorVerification()method.
- Name
supportedFirstFactors- Type
EmailCodeFactor[] | PhoneCodeFactor[] | PasswordFactor[]- Description
Array of the that are supported in the current session verification. Each factor contains information about the verification strategy that can be used.
- Name
supportedSecondFactors- Type
TOTPFactor[] | PhoneCodeFactor[] | BackupCodeFactor[]- Description
Array of the that are supported in the current session verification. Each factor contains information about the verification strategy that can be used.
Feedback
Last updated on