TokenRefresher
Defined in: src/oauth/tokenRefresher.ts:23
Class responsible for refreshing OAuth2 access tokens
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TokenRefresher(
auth,onRefresh):TokenRefresher
Defined in: src/oauth/tokenRefresher.ts:26
Parameters
Section titled “Parameters”onRefresh
Section titled “onRefresh”(tokens) => Promise<void>
Returns
Section titled “Returns”TokenRefresher
Properties
Section titled “Properties”tokenRefreshFunction
Section titled “tokenRefreshFunction”tokenRefreshFunction:
TokenRefreshFunction
Defined in: src/oauth/tokenRefresher.ts:37
Attempt token refresh using given refresh token
refreshToken
refresh token to use in request with token issuer
Returns
Section titled “Returns”tokens - Promise that resolves with new access and refresh tokens
Throws
Section titled “Throws”when token refresh fails