반응형
Google 액세스 토큰 만료 시간
access_token
Google 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
- expires_in — 토큰이 유효하지 않게되기까지 남은 시간 (초) 입니다.
참고 URL : https://stackoverflow.com/questions/10391225/google-access-token-expiration-time
반응형
'development' 카테고리의 다른 글
MongoDB BSON 문서 크기 제한 이해 (0) | 2020.06.21 |
---|---|
정적이 아닌 내부 클래스에 정적 메서드를 사용할 수없는 이유는 무엇입니까? (0) | 2020.06.21 |
jQuery를 사용하여 div의 높이가 변경되는 경우 감지 (0) | 2020.06.21 |
시간 초과로 InputStream에서 읽을 수 있습니까? (0) | 2020.06.21 |
Objective-C에서 nullable, __nullable 및 _Nullable의 차이점 (0) | 2020.06.21 |