development

Google 액세스 토큰 만료 시간

big-blog 2020. 6. 21. 19:07
반응형

Google 액세스 토큰 만료 시간


access_tokenGoogle API에서를 얻으면 expires_in가치가 있습니다. 설명서에 따르면이 값은 "액세스 토큰의 남은 수명"을 나타냅니다.

이 값의 단위는 무엇입니까?


사양은 초라고 말합니다.

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.

Google이이를 문서화하지 않는 것이 부주의하다는 OP에 동의합니다.


https://developers.google.com/accounts/docs/OAuth2UserAgent#handlingtheresponse를 살펴보십시오.

그것은 말한다 :

응답에 포함 된 다른 매개 변수는 expires_in및을 포함 token_type합니다. 이 매개 변수는 토큰 수명을 초 단위로 설명합니다 ...


허용되는 답변이 없으므로이 답변에 답변하려고합니다.

[s] - seconds

에서 클라이언트를위한 Google OAuth2.0에

  • expires_in토큰이 유효하지 않게되기까지 남은 시간 (초) 입니다.

참고 URL : https://stackoverflow.com/questions/10391225/google-access-token-expiration-time

반응형