TokenRefreshFunction
TokenRefreshFunction = (
refreshToken) =>Promise<AccessTokens>
Defined in: src/http-api/interface.ts:47
Function that performs token refresh using the given refreshToken. Returns a promise that resolves to the refreshed access and (optional) refresh tokens.
Can be passed to HttpApi instance as IHttpOpts.tokenRefreshFunction during client creation ICreateClientOpts
Parameters
Section titled “Parameters”refreshToken
Section titled “refreshToken”string
Returns
Section titled “Returns”Promise<AccessTokens>