Commit iniziale

This commit is contained in:
Paolo A
2025-02-18 22:59:07 +00:00
commit 4bbf35cefb
6879 changed files with 623784 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { TokenClaims } from "./TokenClaims.js";
/**
* 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