回答
看一看: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. Salesforce訪問令牌到期
- 6. Facebook訪問令牌到期
- 7. Yammer訪問令牌到期
- 8. Instagram訪問令牌到期
- 9. WSO2訪問令牌時間
- 10. 哪些API訪問令牌具有到期時間?
- 11. 訪問令牌到期時間offline_access許可
- 12. 訪問令牌的Google+
- 13. Google帳戶訪問令牌
- 14. 訪問令牌到期/更新
- 15. Yii2到期的訪問令牌
- 16. 長時間使用Google API提供的訪問令牌
- 17. 在短時間內過期服務器端訪問令牌
- 18. 如何查詢Facebook訪問令牌的過期時間?
- 19. Google Contacts API - 獲取訪問令牌(oauth)
- 20. 使用GoogleAuthUtil令牌訪問Google Drive API
- 21. Google OAuth - 如何重用訪問令牌
- 22. Google身份驗證的訪問令牌
- 23. python google-auth-oauthtool獲取訪問令牌
- 24. OAuth v2(Google API)失效訪問令牌
- 25. 生成令牌以訪問Google帳戶
- 26. 訪問令牌?
- 27. 訪問令牌的Exchange Oauth請求令牌失敗Google API
- 28. Google訪問令牌請求:無效令牌/簽名
- 29. Firebase訪問令牌在4到5小時內過期
- 30. 是否可以通過Omniauth Rubygem獲得Facebook訪問令牌的到期時間
因爲有99.9%的時間,當你有一個數字表示時間是秒或細分,而毫秒/毫秒對這種情況沒有意義嗎? – Venge
@FrankLaRosa:有什麼方法可以將訪問令牌的過期設置爲無限制。 – hardik
請接受下面的答案,如果這是令人滿意的,謝謝 – msysmilu