K
Kinde6mo ago
Emeyex

Python SDK login issues with jwt iat validation.

Hello, I am implementing the python SDK into my python backend. Until this morning it has been working flawlessly but today I am getting an error when trying to log into an existing account. At callback after registration and login using google everything works. It is only when logging into an existing account that I get a 500 internal server error. The console displays the following error: jwt.exceptions.ImmatureSignatureError: The token is not yet valid (iat) This happens when tring to call kinde_client.get_user_details() Thank you for your help, Max
3 Replies
Yoshify
Yoshify6mo ago
Hi @Emeyex! The most common cause of ImmatureSignatureError in pyjwt (the library the Kinde Python SDK uses for decoding JWTs) is clock skew. Is your local development server/prod server clock perhaps running out of sync?
Emeyex
EmeyexOP6mo ago
That is possible. At this time, we have only tested on a local development server. Using the Kinde SDK. How can I fix this? It is now fixed. It was indeed a server sync issue caused by poor token logic in our app. Thanks a lot for the help
Yoshify
Yoshify6mo ago
Glad to hear it! Happy building 👏

Did you find this page helpful?