当我从Google API获得一个access_token
时,它附带了一个expires_in
值。根据文档,该值表示“访问令牌的剩余生命周期”。
这个值的单位是什么?
发布于 2012-10-09 04:00:26
规范上写着秒数:
https://datatracker.ietf.org/doc/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的观点,谷歌不记录这一点是粗心的。
发布于 2015-02-18 20:51:49
由于没有公认的答案,我将尝试回答这个问题:
[s] - seconds
https://stackoverflow.com/questions/10391225
复制相似问题