GetAccessTokenResult class

扩展

AuthFlowResultBase<GetAccessTokenResultState, GetCurrentAccountAccessTokenError, AuthenticationResult>

构造函数

GetAccessTokenResult(AuthenticationResult)

创建 GetAccessTokenResult 的新实例。

继承属性

data
error
state

方法

createWithError(unknown)

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

isCompleted()

检查结果是否已完成。

isFailed()

检查结果是否失败。

构造函数详细信息

GetAccessTokenResult(AuthenticationResult)

创建 GetAccessTokenResult 的新实例。

new GetAccessTokenResult(resultData?: AuthenticationResult)

参数

resultData

AuthenticationResult

访问令牌的结果数据。

继承属性详细信息

data

data?: AuthenticationResult

属性值

AuthenticationResult

继承自 AuthFlowResultBase.data

error

error?: GetCurrentAccountAccessTokenError

属性值

继承自 AuthFlowResultBase.error

state

state: GetAccessTokenResultState

属性值

继承自 AuthFlowResultBase.state

方法详细信息

createWithError(unknown)

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

static function createWithError(error: unknown): GetAccessTokenResult

参数

error

unknown

发生的错误。

返回

出现错误的结果。

isCompleted()

检查结果是否已完成。

function isCompleted(): this

返回

this

isFailed()

检查结果是否失败。

function isFailed(): this

返回

this