Constructors
constructor
- new AuthCache(authenticator, cacheExpirySeconds?): AuthCache
Parameters
- authenticator: Authenticator
- cacheExpirySeconds: number = DEFAULT_MAX_AGE_SECONDS
Methods
getToken
- getToken(): Promise<string>
Returns Promise<string>
refresh
- refresh(): Promise<void>
Returns Promise<void>