kakao-android-sdk-rx / com.kakao.sdk.auth / AccessTokenRepo

AccessTokenRepo

interface AccessTokenRepo

카카오 API 에 사용되는 액세스 토큰, 리프레시 토큰을 관리하는 저장소.

SDK v2 에서 유저의 로그인 여부를 판단하는데 쓰입니다.

Since
2.0.0

Author
kevin.kang. Created on 2018. 3. 24..

Functions

clearCache

캐시에 저장되어 있는 OAuthToken 객체를 지움. Clear OAuthToken in cache used by the SDK

abstract fun clearCache(): Unit

fromCache

캐시에 저장되어 있는 OAuthToken 객체를 리턴.

abstract fun fromCache(): OAuthToken

toCache

OAuth Token API 를 통하여 받은 AccessTokenResponse 객체를 사용하여 캐시를 업데이트 함.

abstract fun toCache(accessTokenResponse: AccessTokenResponse): OAuthToken

Companion Object Properties

instance

기본적으로 SDK 에서 제공되는 AccessTokenRepo singleton 객체

val instance: AccessTokenRepo