Skip to content

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

string

Promise<AccessTokens>