18 lines
529 B
TypeScript
18 lines
529 B
TypeScript
import { TokenClaims } from "./TokenClaims";
|
|
/**
|
|
* Extract token by decoding the rawToken
|
|
*
|
|
* @param encodedToken
|
|
*/
|
|
export declare function extractTokenClaims(encodedToken: string, base64Decode: (input: string) => string): TokenClaims;
|
|
/**
|
|
* decode a JWT
|
|
*
|
|
* @param authToken
|
|
*/
|
|
export declare function getJWSPayload(authToken: string): string;
|
|
/**
|
|
* Determine if the token's max_age has transpired
|
|
*/
|
|
export declare function checkMaxAge(authTime: number, maxAge: number): void;
|
|
//# sourceMappingURL=AuthToken.d.ts.map
|