TokenData

constructor(accessToken: String, apiKey: String, expiresIn: Int, tokenType: String, appId: String? = null, grants: List<String>? = null, refresh: TokenRefreshInfo? = null)

Parameters

accessToken

访问令牌,用于 Authorization: Bearer 认证头

apiKey

API 密钥,用于 X-Api-Key 认证头

expiresIn

令牌有效期(秒)

tokenType

令牌类型,通常为 "Bearer"

appId

应用 ID(格式 vap_xxxx),与 VDS 文档中的 appId 等价

grants

授权的权限范围列表

refresh

可选的令牌刷新信息