Type Alias TokenRefreshFunction

TokenRefreshFunction: (refreshToken: string) => Promise<AccessTokens>

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