fursuit-tv-sdk
Toggle table of contents
0.4.1
common
Target filter
common
Switch theme
Search in API
Skip to content
fursuit-tv-sdk
fursuit-tv-sdk
/
com.furrist.rp.furtv.sdk.model
/
TokenInfo
Token
Info
@
Serializable
sealed
class
TokenInfo
令牌信息,SDK 内部使用的令牌存储结构(sealed class)。
Inheritors
Platform
OAuth
Members
Types
OAuth
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 授权码流程。
Platform
Link copied to clipboard
@
Serializable
data
class
Platform
(
val
apiKey
:
String
,
val
expiresAt
:
Long
,
val
tokenType
:
String
)
:
TokenInfo
平台签名,来自签名交换端点。
Properties
expires
At
Link copied to clipboard
abstract
val
expiresAt
:
Long
token
Type
Link copied to clipboard
abstract
val
tokenType
:
String
Functions
is
Expired
Link copied to clipboard
fun
isExpired
(
)
:
Boolean