Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 264c007

Browse files
fix example
1 parent ed1bad2 commit 264c007

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/pages/reference/jwt/validateJWT.md

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import { validateJWT } from "oslo/jwt";
2828

2929
try {
3030
const jwt = validateJWT(
31+
"HS256",
32+
key,
3133
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXNzYWdlIjoiaGVsbG8ifQ.yP03DaEblJkk9mR-Y5L7YCMzJgHL-RDPx90aXz-cuAI"
3234
);
3335
const message = jwt.payload.message;

0 commit comments

Comments
 (0)