ITokenCache interface

İstemci için önbellek api'lerine erişim veren belirteç önbellek arabirimi

Yöntemler

getAccountByHomeId(string)

HomeAccountId ile eşleşen oturum açmış hesabı döndürür

getAccountByLocalId(string)

localAccountId ile eşleşen oturum açmış hesabı döndürür

getAllAccounts()

Şu anda önbellekte olan tüm hesapları kullanıcıya alan API

removeAccount(AccountInfo)

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>