MfaAwaitingState class
指示需要 MFA 并等待用户操作的状态。 此状态允许开发人员在将代码发送到用户的电子邮件之前暂停执行。
- 扩展
-
MfaState<MfaAwaitingStateParameters>
构造函数
| Mfa |
创建 AuthFlowActionRequiredStateBase 的新实例。 |
属性
| state |
状态的类型。 |
方法
| get |
获取 MFA 的可用身份验证方法。 |
继承的方法
| request |
请求特定身份验证方法的 MFA 质询。 |
构造函数详细信息
MfaAwaitingState(MfaAwaitingStateParameters)
创建 AuthFlowActionRequiredStateBase 的新实例。
new MfaAwaitingState(stateParameters: MfaAwaitingStateParameters)
参数
- stateParameters
-
MfaAwaitingStateParameters
身份验证状态的参数。
属性详细信息
stateType
状态的类型。
stateType: string
属性值
string
方法详细信息
getAuthMethods()
获取 MFA 的可用身份验证方法。
function getAuthMethods(): AuthenticationMethod[]
返回
可用身份验证方法的数组。
继承的方法详细信息
requestChallenge(string)
请求特定身份验证方法的 MFA 质询。
function requestChallenge(authMethodId: string): Promise<MfaRequestChallengeResult>
参数
- authMethodId
-
string
要用于质询的身份验证方法 ID。
返回
Promise<MfaRequestChallengeResult>
解析为 MfaRequestChallengeResult 的承诺。
继承自 MfaState.requestChallenge