Hello! I'd like to verify the user JWT from payload (passed as a GET query param from the preview url) in NextJS but it seems like it is failing every time. I currently have the following code to verify using "jose".
import { jwtVerify } from "jose"
await jwtVerify(token, new TextEncoder().encode("my_secret_token"))
I would look into the decode method of the jsonwebtoken library
Hi
@712127536326246413- I'm not familiar with the jose package, have you tried using the local or REST API to verify the user JWT?
hey
@712127536326246413I just answered this same idea of a question here:
Star
Discord
online
Get dedicated engineering support directly from the Payload team.