Skip to content

Commit

Permalink
chore: bring back JwtPayload generic in TypeScript sample
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Jul 27, 2023
1 parent 8f6925b commit 921c47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ You can extend both `JwtHeader` and `JwtPayload` to include non-standard claims
import jwtDecode from "jwt-decode";

const token: string = "eyJhsw5c";
const decoded = jwtDecode(token); // Returns with the JwtPayload type
const decoded = jwtDecode<JwtPayload>(token); // Returns with the JwtPayload type
```

#### Use as a CommonJS package
Expand Down

0 comments on commit 921c47c

Please sign in to comment.