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
Google Social Login: jwt.exceptions.ImmatureSignatureError: The token is not yet valid (iat) #445
Comments
Thanks for creating this issue @Papajohn77. I'll take a look. |
@Papajohn77 I tried replicating your issue but I didn't face any error. What's your python and supertokens-python SDK version? Can you share the full error trace? |
@Papajohn77 this is what is causing issues. You probably just need to upgrade/downgrade. Let me know if doesn't work (and share the output of |
Python 3.10.8 Now the exception raised is different, however, the root cause is the same because if I add some leeway in the decoding of the JWT it works fine...
|
As mentioned here this seems to break after version 2.5.0 which I cannot use due to version conflicts. I have tried versions 2.6.0 & 2.7.0 but the error persisted. |
Hi @Papajohn77, please share a jwt that's failing for you. Also, are you sure you've tried with >>> timegm(datetime.now(tz=timezone.utc).utctimetuple())
1695130379
>>> datetime.now(tz=timezone.utc).timestamp()
1695130382.739629 |
Hello @KShivendu, I just tried once more making sure I have PyJWT 2.7.0 and still getting the same error. Here is a JWT: |
@Papajohn77, this doesn't add up. It should have worked.
|
It happens every time... I managed to make it work with Docker. Thanks for your time, you can close this. |
Getting the same issue I have downgraded the version of pyJWT from 2.6.0 to 2.5.0 and this issue is resolved @rishabhpoddar please look at this |
We have relaxed the constraint on pyJWT to be >= 2.5 instead of >= 2.6. So for those facing this issue, please downgrade pyJWT to 2.5 |
This issue was introduced in PyJWT v2.6.0 and was immediately fixed in v2.7.0. No further action is required on this issue as our version constraint already allow upgrading to the latest version (v2.8.0). |
Steps to reproduce:
Create a new SuperTokens app using:
npx create-supertokens-app@latest
Choose any combination of frontend framework and
Python
backend frameworkChoose any of the authentication types that involves
Social Login
Once both the frontend and backend are up and running try to
Continue with Google
The text was updated successfully, but these errors were encountered: