回答
看一看:https://developers.google.com/accounts/docs/OAuth2UserAgent#handlingtheresponse
它说:在响应
其他参数包括
expires_in
和token_type
。这些参数描述 秒令牌的使用寿命...
expires_in指的是什么令牌:访问令牌或刷新令牌? –
@AlexanderSupertramp应该将访问令牌称为刷新令牌,用于在用户脱机时获取新的访问令牌。 –
细则中指出秒:
http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-4.2.2
expires_in
OPTIONAL. The lifetime in seconds of the access token. For
example, the value "3600" denotes that the access token will
expire in one hour from the time the response was generated.
我与OP,这为谷歌并不会记录这个粗心的同意。
这是正确的答案 – YYamil
,因为没有公认的答案我会尽量回答这个问题:
[s] - seconds
- expires_in - 的凭证剩余秒数变得无效 。
- 1. Facebook访问令牌的到期时间
- 2. 查找到期时间访问令牌
- 3. 访问令牌到期时间验证
- 4. 谷歌访问令牌过期时间
- 5. Facebook访问令牌到期
- 6. Yammer访问令牌到期
- 7. Salesforce访问令牌到期
- 8. Dropbox访问令牌到期
- 9. Instagram访问令牌到期
- 10. Deezer访问令牌何时到期?
- 11. WSO2访问令牌时间
- 12. Google OAuth的访问令牌到期时区
- 13. 调用Google API时检测访问令牌到期
- 14. 如何找到LinkedIn访问令牌的到期时间?
- 15. 访问令牌到期时间offline_access许可
- 16. 哪些API访问令牌具有到期时间?
- 17. LinkedIn OAuth访问令牌刷新不增加到期时间
- 18. 访问令牌的Google+
- 19. Google帐户访问令牌
- 20. Facebook访问令牌到期问题
- 21. 发布到Google表格 - 访问令牌
- 22. Yii2到期的访问令牌
- 23. 的oauth2访问令牌到期
- 24. 访问令牌到期/更新
- 25. facebook访问令牌到期不明
- 26. 长时间使用Google API提供的访问令牌
- 27. 如何控制Google API访问的令牌响应过期时间
- 28. 在短时间内过期服务器端访问令牌
- 29. 如何查询Facebook访问令牌的过期时间?
- 30. 如何获取fb_graph中的访问令牌过期时间?
因为有99.9%的时间,当你有一个数字表示时间是秒或细分,而毫秒/毫秒对这种情况没有意义吗? – Venge
@FrankLaRosa:有什么方法可以将访问令牌的过期设置为无限制。 – hardik
请接受下面的答案,如果这是令人满意的,谢谢 – msysmilu