nestjs / jwt

JWT utilities module based on the jsonwebtoken package 🔓

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decode JWT without verifying secret

deviant32 opened this issue · comments

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I am trying to decode a signed token without verifying the JWT. Is this possible?

The JwtService has a decode method as seen here. As it uses jsonwebtoken under the hood, it should be fine to decode without verification