UNPKG

hat-javascript-sdk

Version:

HAT JavaScript SDK

15 lines (14 loc) 402 B
export interface JWTDecoded { accessScope?: string; iss?: string; exp: number; iat: number; applicationId: string; } export declare class Jwt { private constructor(); static decodeToken(encodedToken: string): JWTDecoded; static isExpired(decodedToken: JWTDecoded): boolean; isTokenExpired(token: string): boolean; private getTokenExpirationDate; }