custom-api-handler
Version:
The package uses axios library to request APIs and uses local-storage for tokens (auth & refresh).
13 lines • 549 B
TypeScript
/**
* Method for auth-token expiry check
* @param expireIntervalInSec | Seconds to expire the token
* @returns | Boolean ? true -> if Session : false
*/
export declare const isAccessTokenExpired: (expireIntervalInSec?: number) => boolean;
/**
* Method for refresh-token expiry check
* @param expireIntervalInSec | Seconds to expire the token
* @returns | Boolean ? true -> if Session : false
*/
export declare const isRefreshTokenExpired: (expireIntervalInSec?: number) => boolean;
//# sourceMappingURL=customValidations.d.ts.map