ITokenCache interface

캐시 API에 대한 액세스 권한을 부여하여 클라이언트에 대한 토큰 캐시 인터페이스

메서드

getAccountByHomeId(string)

homeAccountId와 일치하는 로그인한 계정을 반환합니다.

getAccountByLocalId(string)

localAccountId와 일치하는 로그인한 계정을 반환합니다.

getAllAccounts()

현재 캐시에 있는 모든 계정을 사용자에게 검색하는 API

removeAccount(AccountInfo)

캐시에서 특정 계정 및 관련 데이터를 제거하는 API

메서드 세부 정보

getAccountByHomeId(string)

homeAccountId와 일치하는 로그인한 계정을 반환합니다.

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

매개 변수

homeAccountId

string

반품

Promise<null | AccountInfo>

getAccountByLocalId(string)

localAccountId와 일치하는 로그인한 계정을 반환합니다.

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

매개 변수

localAccountId

string

반품

Promise<null | AccountInfo>

getAllAccounts()

현재 캐시에 있는 모든 계정을 사용자에게 검색하는 API

function getAllAccounts(): Promise<AccountInfo[]>

반품

Promise<AccountInfo[]>

removeAccount(AccountInfo)

캐시에서 특정 계정 및 관련 데이터를 제거하는 API

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

매개 변수

account
AccountInfo

반품

Promise<void>