外观
TokenResponseType
约 251 字小于 1 分钟
2025-08-01
@candriajs/git-neko-kit / TokenResponseType
接口: TokenResponseType
定义于: types/platform/github/auth.ts:2
Github 授权令牌接口返回类型
属性
access_token
access_token:
string
定义于: types/platform/github/auth.ts:8
用户访问令牌, 格式为 ghu_ 开头
expires_in
expires_in:
null
|number
定义于: types/platform/github/auth.ts:10
access_token 过期前的秒数,默认值为 28800(8小时)
message
message:
string
定义于: types/platform/github/auth.ts:6
获取访问令牌信息
refresh_token
refresh_token:
null
|string
定义于: types/platform/github/auth.ts:12
刷新令牌,格式为 ghr_ 开头,可能为 null
refresh_token_expires_in
refresh_token_expires_in:
null
|number
定义于: types/platform/github/auth.ts:14
refresh_token 过期前的秒数,默认值为 15897600(6个月)
scope
scope:
string
定义于: types/platform/github/auth.ts:16
令牌范围,默认是空字符串
success
success:
boolean
定义于: types/platform/github/auth.ts:4
是否成功刷新
token_type
token_type:
"bearer"
定义于: types/platform/github/auth.ts:18
令牌类型,始终为 'bearer'