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
Signature error in golang version 1.18.3 #214
Comments
It seems you are using the old v3 branch, which we do not really support any more. Could you try to upgrade to Otherwise a very weird bug, I will check the release notes of 1.18.3 if there is something that could potentially impact this library. |
I have no idea what changed, but I changed the version again to Thanks for the suggestion but I don't think I know what cause this my initial error. ChangesChanged Complete Codesjwt.go
|
Unforunatley, I also could not reproduce the issue with your original code. Maybe you had some other environment variables set, that were overriding those by dotgetenv. Not sure. I'll keep this issue open for a few days, if other people experience similar issues after upgrading to 1.18.3, please let us know. Otherwise, I will close it as resolved. |
okay thank you. Works well so far anyways |
No new issues have been reporting with this version, closing this for now. |
Problem
I set up a simple login and authentication function in my application. It works fine in golang version
1.18.2
but when I updated to1.18.3
, theParseWithClaim
function always returnssignature error
and it works fine after I used golang version1.18.2
again.Environment
OS=Ubuntu 20.04.4 (WSL 2)
Go=1.18.3
IDE=VSCode
github.com/golang-jwt/jwt=v3.2.2+incompatible
github.com/joho/godotenv=v1.4.0
Codes
.env
jwt.go
main.go
Notes
I forgot to copy and past the error printed in the terminal but if I remembered correctly it says
signature error
. I printed out the secretKey that was used from.env
and it was the same thing. So, it's not thedotenv
problem in my understandingThe text was updated successfully, but these errors were encountered: