Closed
Description
The method verify_token
-
clock_skew_in_seconds
- https://github.com/googleapis/google-auth-library-python/blob/87cd2455aca96ac3fbc4a8b2f8e4c0bba568a70b/google/oauth2/id_token.py#L114.
However, it is not possible to provide this parameter when verifying ID tokens -
firebase-admin-python/firebase_admin/auth.py
Line 194 in 6d826fd
I have been recently having issues where validating tokens failed from time to time with a message "Token used too early", where the timestamps were having a difference of 1-3 seconds. I have patched the admin SDK with clock_skew_in_seconds=10
argument and the issue disappeared. I do understand that my server's time synchronization is the problem in first place but being able to provide existing parameters would also be extremely helpful.