AuthApiClient

class AuthApiClient(manager: AuthApiManager = AuthApiManager.instance, tokenManagerProvider: TokenManagerProvider = TokenManagerProvider.instance)

카카오 로그인 인증 및 토큰 관리 클라이언트
Client for the authentication and token management through Kakao Login

Constructors

Link copied to clipboard
constructor(manager: AuthApiManager = AuthApiManager.instance, tokenManagerProvider: TokenManagerProvider = TokenManagerProvider.instance)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

토큰 존재 여부 확인하기
Check token presence

Link copied to clipboard
fun refreshToken(oldToken: OAuthToken = tokenManagerProvider.manager.getToken() ?: throw ClientError( ClientErrorCause.TokenNotFound, "Refresh token not found. You must login first." ), callback: (token: OAuthToken?, error: Throwable?) -> Unit)

토큰 갱신
Refreshes the tokens