xior
Version:
A lite http request lib based on fetch with plugins support and similar API to axios.
10 lines (7 loc) • 430 B
TypeScript
import { b as XiorInstance, l as XiorError, d as XiorResponse } from '../xior-D_RKcIOK.js';
declare function defaultShouldRefresh(response: XiorResponse): boolean | 0;
declare function setupTokenRefresh(instance: XiorInstance, options: {
refreshToken: (error: XiorError) => Promise<any> | any;
shouldRefresh?: (response: XiorResponse) => boolean;
}): void;
export { setupTokenRefresh as default, defaultShouldRefresh };