DEV Community

Discussion on: Remaining Stateless - JWT + Cookies in Node JS(REST)

Collapse
 
mr_cea profile image
Ogbonna Basil

You are probably getting undefined because you signed the jwt with the secret process.env.Acess_Token but you are trying to verify it with process.env.JWT_Secret. Please correct that and check if it works.