Skip to content

Commit

Permalink
add reserved claims types
Browse files Browse the repository at this point in the history
  • Loading branch information
dschaller committed Nov 5, 2020
1 parent f87527d commit f63ad18
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@ export interface JwtDecodeOptions {
header?: boolean;
}

export default function jwtDecode(token: string, options?: JwtDecodeOptions): unknown;
export interface JwtClaims {
iss?: string;
sub?: string;
aud?: string[] | string;
exp?: number;
nbf?: number;
iat?: number;
jti?: string;
}

export default function jwtDecode(token: string, options?: JwtDecodeOptions): JwtClaims;

0 comments on commit f63ad18

Please sign in to comment.