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