OAuthToken

data class OAuthToken(accessToken: String, accessTokenExpiresAt: Date, refreshToken: String, refreshTokenExpiresAt: Date, idToken: String?, scopes: List<String>?) : Parcelable

카카오 로그인을 통해 발급 받은 토큰. Kakao SDK는 TokenManageable 인터페이스를 통해 토큰을 자동으로 관리함.

Constructors

Link copied to clipboard
fun OAuthToken(accessToken: String, accessTokenExpiresAt: Date, refreshToken: String, refreshTokenExpiresAt: Date, idToken: String? = null, scopes: List<String>? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val accessToken: String

API 인증에 사용하는 엑세스 토큰.

Link copied to clipboard
val accessTokenExpiresAt: Date

엑세스 토큰 만료 시각.

Link copied to clipboard
val idToken: String? = null

OpenID Connect 확장 기능을 통해 발급되는 ID 토큰, Base64 인코딩된 사용자 인증 정보 포함

Link copied to clipboard
val refreshToken: String

엑세스 토큰을 갱신하는데 사용하는 리프레시 토큰.

Link copied to clipboard
val refreshTokenExpiresAt: Date

리프레시 토큰 만료 시각.

Link copied to clipboard
val scopes: List<String>? = null

이 토큰에 부여된 scope 목록.