UNPKG

@reactit/auth

Version:

The ultimate token basted authentication solution for React

8 lines (7 loc) 279 B
export declare type Token = string; export interface TokenBundle { token: Token; expiresAt?: number; } export declare function coerceExpiration(exp: number | Date | undefined): number | undefined; export declare function isTokenBundleValid(bundle: TokenBundle): boolean;