UNPKG

axios-token-refresher

Version:

Enables your axios client to attach a valid authorization token to each of your request.

4 lines (3 loc) 277 B
import { AxiosInstance } from 'axios'; import { TokenRefresherFunc, TokenRefresherOptions } from './types'; export default function wrapTokenRefresher(axiosClient: AxiosInstance, refreshToken: TokenRefresherFunc, customOptions?: Partial<TokenRefresherOptions>): AxiosInstance;