ITokenCache interface

Interface de cache de jeton pour le client, donnant accès aux API de cache

Méthodes

getAccountByHomeId(string)

Retourne le compte connecté correspondant à homeAccountId

getAccountByLocalId(string)

Retourne le compte connecté correspondant à localAccountId

getAllAccounts()

API qui récupère tous les comptes actuellement en cache à l’utilisateur

removeAccount(AccountInfo)

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>