GetAccessTokenResult class
- Extends
-
AuthFlowResultBase<GetAccessTokenResultState, GetCurrentAccountAccessTokenError, AuthenticationResult>
建構函式
| Get |
建立一個新的 GetAccessTokenResult 實例。 |
方法
| create |
建立一個新的 GetAccessTokenResult 實例,並有錯誤。 |
| is |
檢查結果是否完成。 |
| is |
檢查結果是否失敗。 |
建構函式詳細資料
GetAccessTokenResult(AuthenticationResult)
建立一個新的 GetAccessTokenResult 實例。
new GetAccessTokenResult(resultData?: AuthenticationResult)
參數
- resultData
-
AuthenticationResult
存取權杖的結果資料。
繼承的屬性詳細資料
data
data?: AuthenticationResult
屬性值
AuthenticationResult
繼承自 AuthFlowResultBase.data
error
error?: GetCurrentAccountAccessTokenError
屬性值
繼承自 AuthFlowResultBase.error
state
方法詳細資料
createWithError(unknown)
建立一個新的 GetAccessTokenResult 實例,並有錯誤。
static function createWithError(error: unknown): GetAccessTokenResult
參數
- error
-
unknown
發生的錯誤。
傳回
結果就是有錯誤。
isCompleted()
檢查結果是否完成。
function isCompleted(): this
傳回
this
isFailed()
檢查結果是否失敗。
function isFailed(): this
傳回
this