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 d7d72f0 commit cd391c4Copy full SHA for cd391c4
readme.md
@@ -17,12 +17,24 @@ pnpm install @kinde/jwt-decoder
17
18
## Usage
19
20
-```js
+__import function__
21
+```ts
22
import { jwtDecoder } from "@kinde/jwt-decoder";
23
+```
24
25
+__Simple decode__
26
27
const decodedToken = jwtDecoder("eyJhbGc...");
28
```
29
30
+__Decode with extended type__
31
+
32
33
+const decodedToken = jwtDecoder<JWTDecoded & {
34
+ // Extra attributes here
35
+}>("eyJhbGc...");
36
37
38
## Kinde documentation
39
40
[Kinde Documentation](https://kinde.com/docs/) - Explore the Kinde docs
0 commit comments