Options
All
  • Public
  • Public/Protected
  • All
Menu

In-memory token cache manager

Hierarchy

  • TokenCache

Implements

Index

Constructors

constructor

Methods

deserialize

  • deserialize(cache: string): void
  • Deserializes JSON to in-memory cache. JSON should be in MSAL cache schema format

    Parameters

    • cache: string

      blob formatted cache

    Returns void

getAccountByHomeId

  • getAccountByHomeId(homeAccountId: string): Promise<AccountInfo>

getAccountByLocalId

  • getAccountByLocalId(localAccountId: string): Promise<AccountInfo>
  • Returns the signed in account matching localAccountId. (the account object is created at the time of successful login) or null when no matching account is found

    Parameters

    • localAccountId: string

      unique identifier of an account (sub/obj when homeAccountId cannot be populated)

    Returns Promise<AccountInfo>

getAllAccounts

getKVStore

hasChanged

  • hasChanged(): boolean

removeAccount

serialize

  • serialize(): string

Generated using TypeDoc