Interface TokenCache

Interface to implement token caching.

Hierarchy

  • TokenCache

Properties

Properties

get: (() => null | {
    accessToken: string;
    expires: number;
})

Type declaration

    • (): null | {
          accessToken: string;
          expires: number;
      }
    • Get a token and expiration timestamp from storage.

      Returns null | {
          accessToken: string;
          expires: number;
      }

set: ((token, expires) => void)

Type declaration

    • (token, expires): void
    • Put a token and expiration timestamp into storage.

      Parameters

      • token: string
      • expires: number

      Returns void

Generated using TypeDoc