“令牌已过期或吊销"-Google OAuth2刷新令牌在几天内过期 [英] 'Token has been expired or revoked' - Google OAuth2 Refresh token gets expired in few days

本文介绍了“令牌已过期或吊销"-Google OAuth2刷新令牌在几天内过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Analytics(分析)API来获取分析数据.我尝试使用以下步骤对其进行身份验证:->在 https://console.developers.google.com/凭据部分中创建的OAuth客户端ID.->在同意屏幕中,我已将发布状态设置为测试->在OAuth 2.0 Playground中,我使用上面生成的客户端ID和客户端密钥获取了刷新令牌->然后,我用它来通过它生成访问令牌.

I am using google analytics api to fetch analytics data. I tried to authenticate it using following steps : -> created OAuth client id in https://console.developers.google.com/ credentials section. -> In consent screen I had set publishing status as testing -> In OAuth 2.0 Playground I got the refresh token using above generated client id and client secret -> Then I am using it to generate access token through it.

但是几天后,刷新令牌似乎一次又一次过期,尽管其中提到刷新令牌的有效期是终身的.

But After few days refresh token seem to expire again and again although it is mentioned that refresh token validity is life long.

推荐答案

另一个答案向我指出了正确的方向,但对我来说,该选项位于其他地方:安全性>找到安全检查/安全问题>应用旁边的上下文菜单>解雇

The other answer pointed me in the right direction but for me the option was located somewhere else: security > security checkup/security issues found > context menu next to your app > dismiss

这篇关于“令牌已过期或吊销"-Google OAuth2刷新令牌在几天内过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆