AuthMethodRegistrationSubmitChallengeResult class

提交驗證方法註冊挑戰的結果。

Extends

繼承的屬性

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。