ITokenCache interface

Tokencacheschnittstelle für den Client, wodurch Der Zugriff auf Cache-APIs ermöglicht wird

Methoden

getAccountByHomeId(string)

Gibt die angemeldete kontoabgleiche homeAccountId zurück.

getAccountByLocalId(string)

Gibt die angemeldete kontoabgleiche localAccountId zurück.

getAllAccounts()

API, die alle Konten abruft, die sich derzeit im Cache befinden, für den Benutzer

removeAccount(AccountInfo)

API zum Entfernen eines bestimmten Kontos und der relevanten Daten aus dem Cache

Details zur Methode

getAccountByHomeId(string)

Gibt die angemeldete kontoabgleiche homeAccountId zurück.

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

Parameter

homeAccountId

string

Gibt zurück

Promise<null | AccountInfo>

getAccountByLocalId(string)

Gibt die angemeldete kontoabgleiche localAccountId zurück.

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

Parameter

localAccountId

string

Gibt zurück

Promise<null | AccountInfo>

getAllAccounts()

API, die alle Konten abruft, die sich derzeit im Cache befinden, für den Benutzer

function getAllAccounts(): Promise<AccountInfo[]>

Gibt zurück

Promise<AccountInfo[]>

removeAccount(AccountInfo)

API zum Entfernen eines bestimmten Kontos und der relevanten Daten aus dem Cache

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

Parameter

account
AccountInfo

Gibt zurück

Promise<void>