-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error: java.lang.IllegalStateException: Either 'payload' or 'claims' must be specified. #72
Comments
This line: Jwts.builder().signWith(SignatureAlgorithm.HS256, "61c5fd4007060fd9ed41fc6f2a155a3a47629b9e9b83d75d1c0d97ebb177fa83").compact(); Is not signing anything. You've got to specify a payload or a claims to sign in that line. But that line is specifically for creating tokens. If you already have one, you don't need to do that. Just call the |
Thank You for information. I will try Your suggestion. |
*Returns me SignatureException: * JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted. What does it mean? And what I'm doing wrong? |
use |
Closing due to inactivity and no functionality changes discussed. Feel free to re-open if there is something to be done. |
Hi, I'm getting this error:
Getting: java.lang.IllegalStateException: Either 'payload' or 'claims' must be specified.
What I'm missing or doing wrong?
For example token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NTAzNDQ4NDcsImV4cCI6MTQ1MDM0NDkwNywidXNlcl9pZCI6bnVsbCwicmlnaHRzIjpudWxsfQ.p4v00qCakzuMZgLHAlzPB9o0z1DhLz8Ky03fmSaAxcc
The text was updated successfully, but these errors were encountered: