카카오 로그인 관련 클라이언트들이 있는 패키지.
앱 구동 시 리프레시토큰의 유무로 로그인 여부를 판단할 수 있습니다.
if (AccessTokenRepo.instance.fromCache().refreshToken == null) {
// 액세스토큰을 갱신할 수 있는 리프레시토큰이 없음. 재로그인 필요.
} else {
// 로그인된 상태
}
AccessTokenRepo |
카카오 API 에 사용되는 액세스 토큰, 리프레시 토큰을 관리하는 저장소. interface AccessTokenRepo |
AuthApi |
interface AuthApi |
AuthApiClient |
class AuthApiClient |
AuthCodeClient |
class AuthCodeClient |
RxAuthApiClient |
카카오 OAuth 서버에서 제공하는 API 를 사용하기 위한 클라이언트. class RxAuthApiClient |
RxAuthCodeClient |
OAuth 2.0 Spec 의 authorization code 를 발급받기 위해 사용되는 클라이언트. class RxAuthCodeClient |
rx |
Rx 용 AuthApiClient 싱긅을 접근하기 위한 extension property val AuthApiClient.Companion.rx: RxAuthApiClient val AuthCodeClient.Companion.rx: RxAuthCodeClient |