crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
360 stars 136 forks source link

Access Token 만료 여부는 어떻게 확인 할 수 있나요? #76

Closed dinidev closed 4 years ago

dinidev commented 4 years ago

Version of kakao-login libraries

Version of react-native

Platforms you faced the error (IOS or Android or both?)

Expected behavior

Actual behavior

Tested environment (Emulator? Real Device?)

heyman333 commented 4 years ago

현재는 accessToken만 가져오도록 구성되어 있는데 다음처럼 모든 프로퍼티를 가져올 수 있도록 추후에 수정 하겠습니다~

괜찮으시다면 pr을 보내주셔도 됩니다!

accessToken
카카오 API를 이용하여 특정 사용자의 리소스에 접근하기 위한 OAuth 토큰.

accessTokenExpiresAt
accessToken이 만료되는 시각. 네이티브 앱키로 요청한 accessToken 기본 만료시간: 12시간.

refreshToken
accessToken을 갱신하기 위한 토큰.

refreshTokenExpiresAt
refreshToken이 만료되는 시각. 네이티브 앱키로 요청한 refreshToken 기본 만료시간: 30일.

scopes
현재 로그인된 사용자가 동의한 scope 목록
dinidev commented 4 years ago

코드를 추가하고 있었는데 빠른 대응 덕분에 바로 적용할 수 있겠네요. 감사합니다. :D

heyman333 commented 4 years ago

@dinidev 네 혹시 더 추가할 내용이나 수정사항 생기면 언제든지 PR 날려주세요~