K
Kinde2d ago
Daniel

Error verifying JWTs signed by Kinde from Next.js to Express API

According to docs I import the verifier: const {jwtVerify} = require("@kinde-oss/kinde-node-express"); const verifier = jwtVerify("https://<your_kinde_subdomain>.kinde.com"); This is my express project where I want to protect my routes. According to docs: app.get("/some-route", verifier, (req, res) => { console.log(req.user); // {id: kp:the-users-kinde-id} }); But I get an error: TypeError: Cannot destructure property 'audience' of 't' as it is undefined. This is thrown at the code line: const verifier = jwtVerify("https://kynavo.kinde.com"); Am I missing something obviously important? The sign in works fine in my client (Next.js) Gratefuul for any guidance on this.,
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?