SignInResult class

扩展

构造函数

SignInResult(SignInResultState, CustomAuthAccountData)

创建 SignInResultState 的新实例。

继承属性

data
error
state

方法

createWithError(unknown)

创建 SignInResult 的新实例并出现错误。

isAuthMethodRegistrationRequired()

检查结果是否需要身份验证方法注册。

isCodeRequired()

检查结果是否处于代码所需状态。

isCompleted()

检查结果是否处于已完成状态。

isFailed()

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

isMfaRequired()

检查结果是否需要 MFA。

isPasswordRequired()

检查结果是否处于密码必需状态。

构造函数详细信息

SignInResult(SignInResultState, CustomAuthAccountData)

创建 SignInResultState 的新实例。

new SignInResult(state: SignInResultState, resultData?: CustomAuthAccountData)

参数

state
SignInResultState

结果的状态。

继承属性详细信息

data

data?: CustomAuthAccountData

属性值

继承自 AuthFlowResultBase.data

error

error?: SignInError

属性值

继承自 AuthFlowResultBase.error

state

state: SignInResultState

属性值

继承自 AuthFlowResultBase.state

方法详细信息

createWithError(unknown)

创建 SignInResult 的新实例并出现错误。

static function createWithError(error: unknown): SignInResult

参数

error

unknown

发生的错误。

返回

具有错误集的 SignInResult 的新实例。

isAuthMethodRegistrationRequired()

检查结果是否需要身份验证方法注册。

function isAuthMethodRegistrationRequired(): this

返回

this

isCodeRequired()

检查结果是否处于代码所需状态。

function isCodeRequired(): this

返回

this

isCompleted()

检查结果是否处于已完成状态。

function isCompleted(): this

返回

this

isFailed()

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

function isFailed(): this

返回

this

isMfaRequired()

检查结果是否需要 MFA。

function isMfaRequired(): this

返回

this

isPasswordRequired()

检查结果是否处于密码必需状态。

function isPasswordRequired(): this

返回

this