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