ITokenCache interface

キャッシュ API へのアクセスを許可する、クライアントのトークン キャッシュ インターフェイス

メソッド

getAccountByHomeId(string)

homeAccountId と一致するサインイン済みアカウントを返します。

getAccountByLocalId(string)

localAccountId と一致するサインイン済みアカウントを返します。

getAllAccounts()

現在キャッシュ内のすべてのアカウントをユーザーに取得する API

removeAccount(AccountInfo)

キャッシュから特定のアカウントと関連データを削除する API

メソッドの詳細

getAccountByHomeId(string)

homeAccountId と一致するサインイン済みアカウントを返します。

function getAccountByHomeId(homeAccountId: string): Promise<null | AccountInfo>

パラメーター

homeAccountId

string

返品

Promise<null | AccountInfo>

getAccountByLocalId(string)

localAccountId と一致するサインイン済みアカウントを返します。

function getAccountByLocalId(localAccountId: string): Promise<null | AccountInfo>

パラメーター

localAccountId

string

返品

Promise<null | AccountInfo>

getAllAccounts()

現在キャッシュ内のすべてのアカウントをユーザーに取得する API

function getAllAccounts(): Promise<AccountInfo[]>

返品

Promise<AccountInfo[]>

removeAccount(AccountInfo)

キャッシュから特定のアカウントと関連データを削除する API

function removeAccount(account: AccountInfo): Promise<void>

パラメーター

account
AccountInfo

返品

Promise<void>