ITokenCache interface
Interface de cache de jeton pour le client, donnant accès aux API de cache
Méthodes
| get |
Retourne le compte connecté correspondant à homeAccountId |
| get |
Retourne le compte connecté correspondant à localAccountId |
| get |
API qui récupère tous les comptes actuellement en cache à l’utilisateur |
| remove |
API pour supprimer un compte spécifique et les données pertinentes du cache |
Détails de la méthode
getAccountByHomeId(string)
Retourne le compte connecté correspondant à homeAccountId
function getAccountByHomeId(homeAccountId: string): Promise<null | AccountInfo>
Paramètres
- homeAccountId
-
string
Retours
Promise<null | AccountInfo>
getAccountByLocalId(string)
Retourne le compte connecté correspondant à localAccountId
function getAccountByLocalId(localAccountId: string): Promise<null | AccountInfo>
Paramètres
- localAccountId
-
string
Retours
Promise<null | AccountInfo>
getAllAccounts()
API qui récupère tous les comptes actuellement en cache à l’utilisateur
function getAllAccounts(): Promise<AccountInfo[]>
Retours
Promise<AccountInfo[]>
removeAccount(AccountInfo)
API pour supprimer un compte spécifique et les données pertinentes du cache
function removeAccount(account: AccountInfo): Promise<void>
Paramètres
- account
- AccountInfo
Retours
Promise<void>