ITokenCache interface
İstemci için önbellek api'lerine erişim veren belirteç önbellek arabirimi
Yöntemler
| get |
HomeAccountId ile eşleşen oturum açmış hesabı döndürür |
| get |
localAccountId ile eşleşen oturum açmış hesabı döndürür |
| get |
Şu anda önbellekte olan tüm hesapları kullanıcıya alan API |
| remove |
Belirli bir hesabı ve ilgili verileri önbellekten kaldırmak için API |
Yöntem Ayrıntıları
getAccountByHomeId(string)
HomeAccountId ile eşleşen oturum açmış hesabı döndürür
function getAccountByHomeId(homeAccountId: string): Promise<null | AccountInfo>
Parametreler
- homeAccountId
-
string
Döndürülenler
Promise<null | AccountInfo>
getAccountByLocalId(string)
localAccountId ile eşleşen oturum açmış hesabı döndürür
function getAccountByLocalId(localAccountId: string): Promise<null | AccountInfo>
Parametreler
- localAccountId
-
string
Döndürülenler
Promise<null | AccountInfo>
getAllAccounts()
Şu anda önbellekte olan tüm hesapları kullanıcıya alan API
function getAllAccounts(): Promise<AccountInfo[]>
Döndürülenler
Promise<AccountInfo[]>
removeAccount(AccountInfo)
Belirli bir hesabı ve ilgili verileri önbellekten kaldırmak için API
function removeAccount(account: AccountInfo): Promise<void>
Parametreler
- account
- AccountInfo
Döndürülenler
Promise<void>