TokenInfo

@Serializable
sealed class TokenInfo

令牌信息,SDK 内部使用的令牌存储结构(sealed class)。

Inheritors

Types

Link copied to clipboard
@Serializable
data class OAuth(val oauthToken: String, val refreshToken: String? = null, val scope: String? = null, val redirectUri: String, val expiresAt: Long, val tokenType: String) : TokenInfo

OAuth 用户令牌,来自 OAuth 授权码流程。

Link copied to clipboard
@Serializable
data class Platform(val apiKey: String, val expiresAt: Long, val tokenType: String) : TokenInfo

平台签名,来自签名交换端点。

Properties

Link copied to clipboard
abstract val expiresAt: Long
Link copied to clipboard
abstract val tokenType: String

Functions

Link copied to clipboard