小编M. *_*hak的帖子

firebase_admin auth 的 verify_id_token 方法引发令牌使用过早错误

每当我跑步时

from firebase_admin import auth
auth.verify_id_token(firebase_auth_token)
Run Code Online (Sandbox Code Playgroud)

它抛出以下错误:

Token used too early, 1650302066 < 1650302067. Check that your computer's clock is set correctly.
Run Code Online (Sandbox Code Playgroud)

我知道底层的 google auth API 确实会检查令牌的时间,但是如此处所述, 应该存在 10 秒的时钟偏差。显然,我的服务器时间晚了 1 秒,但是运行仍然失败,即使这远低于允许的 10 秒偏差。有没有办法来解决这个问题?

python google-authentication firebase

11
推荐指数
1
解决办法
4472
查看次数

标签 统计

firebase ×1

google-authentication ×1

python ×1