Auth Api Client
class AuthApiClient(manager: AuthApiManager, tokenManagerProvider: TokenManagerProvider)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun issueAccessToken(code: String, codeVerifier: String? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
사용자 인증코드를 이용하여 신규 토큰 발급을 요청합니다.
Link copied to clipboard
Content copied to clipboard
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)
Content copied to clipboard
기존 토큰을 갱신합니다
Extensions
Link copied to clipboard
fun AuthApiClient.issueAccessToken(groupRefreshToken: String, callback: (token: OAuthToken?, error: Throwable?) -> Unit)
Content copied to clipboard
그룹 내 다른 앱의 refreshToken으로 사용자를 인증하여 현재 앱의 토큰을 발급 받습니다.