We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175ce9f commit d56f606Copy full SHA for d56f606
lib/global.ts
lib/index.ts
@@ -1,6 +1,24 @@
1
import base64_url_decode from "./base64_url_decode";
2
-import { JwtDecodeOptions, JwtHeader, JwtPayload } from "./global";
3
-export * from './global';
+
+export interface JwtDecodeOptions {
4
+ header?: boolean;
5
+}
6
7
+export interface JwtHeader {
8
+ typ?: string;
9
+ alg?: string;
10
+ kid?: string;
11
12
13
+export interface JwtPayload {
14
+ iss?: string;
15
+ sub?: string;
16
+ aud?: string[] | string;
17
+ exp?: number;
18
+ nbf?: number;
19
+ iat?: number;
20
+ jti?: string;
21
22
23
export class InvalidTokenError extends Error {
24
constructor(message: string) {
0 commit comments