Google access token expiration time

前端 未结 4 2034
南笙
南笙 2020-12-13 22:42

When I obtain an access_token from the Google API, it comes with an expires_in value. According to the documentation, this value indicates \"The r

4条回答
  •  臣服心动
    2020-12-13 23:37

    The spec says seconds:

    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.
    

    I agree with OP that it's careless for Google to not document this.

提交回复
热议问题