mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
6 lines
327 B
TypeScript
6 lines
327 B
TypeScript
//#region src/jwt/parse-jwt.d.ts
|
|
/** Decode the payload of a JWT without verifying its signature, `undefined` for malformed tokens. */
|
|
declare function parseJwt<Payload = Record<string, unknown>>(token: string | undefined): Partial<Payload> | undefined;
|
|
//#endregion
|
|
export { parseJwt };
|
|
//# sourceMappingURL=parse-jwt.d.ts.map
|