Token Data
constructor(accessToken: String, apiKey: String, expiresIn: Int, tokenType: String, appId: String? = null, grants: List<String>? = null, refresh: TokenRefreshInfo? = null)
Parameters
access Token
访问令牌,用于 Authorization: Bearer 认证头
api Key
API 密钥,用于 X-Api-Key 认证头
expires In
令牌有效期(秒)
token Type
令牌类型,通常为 "Bearer"
app Id
应用 ID(格式 vap_xxxx),与 VDS 文档中的 appId 等价
grants
授权的权限范围列表
refresh
可选的令牌刷新信息