Friday, 8 July 2022

Token used too early error thrown by firebase_admin auth's verify_id_token method

Whenever I run

from firebase_admin import auth
auth.verify_id_token(firebase_auth_token)

It throws the following error:

Token used too early, 1650302066 < 1650302067. Check that your computer's clock is set correctly.

I'm aware that the underlying google auth APIs do check the time of the token, however as outlined here there should be a 10 second clock skew. Apparently, my server time is off by 1 second, however running this still fails even though this is well below the allowed 10 second skew. Is there a way to fix this?



from Token used too early error thrown by firebase_admin auth's verify_id_token method

No comments:

Post a Comment