Type alias TokenRefreshFunctionExperimental

TokenRefreshFunction: ((refreshToken) => 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

Type declaration

Generated using TypeDoc