UNPKG

@authup/core

Version:

Package containing global constants, types & interfaces.

13 lines 558 B
import type { RequestOptions } from 'hapic'; import { ErrorCode } from '../../error'; export declare function isAPIClientErrorWithCode(err: unknown, code: `${ErrorCode}`): boolean; export declare function isAPIClientTokenExpiredError(err: unknown): boolean; export declare function isAPIClientTokenInvalidError(err: unknown): boolean; type RetryState = { retryCount: number; }; export declare function getRequestRetryState(config: Partial<RequestOptions> & { retry?: Partial<RetryState>; }): RetryState; export {}; //# sourceMappingURL=utils.d.ts.map