Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpiringAccessTokenCache

Package version

Provides an AccessTokenCache implementation which clears the cached AccessToken's after the expiresOnTimestamp has passed.

Hierarchy

  • ExpiringAccessTokenCache

Implements

Index

Constructors

constructor

  • Constructs an instance of ExpiringAccessTokenCache with an optional expiration buffer time.

    Parameters

    • Optional tokenRefreshBufferMs: undefined | number

    Returns ExpiringAccessTokenCache

Methods

getCachedToken

setCachedToken

  • setCachedToken(accessToken: AccessToken | undefined): void
  • Parameters

    Returns void

Generated using TypeDoc