AuthMethodRegistrationSubmitChallengeResult class

提交身份验证方法注册质询的结果。

扩展

继承属性

data
error
state

方法

createWithError(unknown)

创建 AuthMethodRegistrationSubmitChallengeResult 并出现错误。

isCompleted()

检查结果是否指示注册已完成。

isFailed()

检查结果是否处于失败状态。

构造函数详细信息

AuthMethodRegistrationSubmitChallengeResult(AuthMethodRegistrationSubmitChallengeResultState, CustomAuthAccountData)

new AuthMethodRegistrationSubmitChallengeResult(state: AuthMethodRegistrationSubmitChallengeResultState, data?: CustomAuthAccountData)

参数

继承属性详细信息

data

data?: CustomAuthAccountData

属性值

继承自 AuthFlowResultBase.data

error

error?: AuthMethodRegistrationSubmitChallengeError

属性值

继承自 AuthFlowResultBase.error

state

state: AuthMethodRegistrationSubmitChallengeResultState

属性值

继承自 AuthFlowResultBase.state

方法详细信息

createWithError(unknown)

创建 AuthMethodRegistrationSubmitChallengeResult 并出现错误。

static function createWithError(error: unknown): AuthMethodRegistrationSubmitChallengeResult

参数

error

unknown

发生的错误。

返回

AuthMethodRegistrationSubmitChallengeResult 出现错误。

isCompleted()

检查结果是否指示注册已完成。

function isCompleted(): this

返回

this

如果注册已完成,则为 true;否则为 false。

isFailed()

检查结果是否处于失败状态。

function isFailed(): this

返回

this

如果结果失败,则为 true;否则为 false。