Rx Auth Api Client
class RxAuthApiClient(manager: RxAuthApiManager, tokenManagerProvider: TokenManagerProvider)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun issueAccessToken(code: String, codeVerifier: String? = null): Single<OAuthToken>
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.")): Single<OAuthToken>
Content copied to clipboard
기존 토큰을 갱신합니다
Extensions
Link copied to clipboard
fun RxAuthApiClient.issueAccessToken(groupRefreshToken: String): Single<OAuthToken>
Content copied to clipboard
그룹에 속해 있는 다른 앱의 refreshToken으로 사용자를 식별하여 신규 토큰을 발급.
Link copied to clipboard
fun RxAuthApiClient.verifyAge(context: Context, ageLimit: Int? = null, authLevel: AgeAuthLevel? = null, skipTerms: Boolean? = null, adultsOnly: Boolean? = null, underAge: Boolean? = false): Completable
Content copied to clipboard
연령 인증 요청