Open revjtanton opened 3 years ago
I guess nobody else is having this issue? I have been unable to find any workaround.
Met the same issue with HS256, without 'base64'. But it only occurs sometimes, not always. :-(
Got the same issue. This is driving me crazy.
I generated the token with Spring Boots jws library and verified it with jsonwebtoken in a nodejs server without any issues. If you try to verify it without setting to base64 it will not verify the token (at least for when signing it with base64 as in my case).
Shouldn't
Buffer.from(process.env.JWT_KEY, 'base64'),
actually be
Buffer.from(process.env.JWT_KEY).toString('base64')
?
Please do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Description
Reproduction
Environment
Buffer
obviously).