OAuthToken

@Serializable
data class OAuthToken(val accessToken: String, val accessTokenExpiresAt: Date, val refreshToken: String, val refreshTokenExpiresAt: Date, val idToken: String? = null, val scopes: List<String>? = null)

카카오 로그인으로 발급받은 토큰
Tokens issued with Kakao Login

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "access_token")
val accessToken: String

액세스 토큰
Access token

Link copied to clipboard
@SerialName(value = "access_token_expires_at")
val accessTokenExpiresAt: Date

액세스 토큰 만료시각
Expiration time of the access token

Link copied to clipboard
@SerialName(value = "id_token")
val idToken: String? = null

ID 토큰
ID token

Link copied to clipboard
@SerialName(value = "refresh_token")
val refreshToken: String

리프레시 토큰
Refresh token

Link copied to clipboard
@SerialName(value = "refresh_token_expires_at")
val refreshTokenExpiresAt: Date

리프레시 토큰 만료시각
Expiration time of the refresh token

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

인가된 동의항목
Authorized scopes