Skip to content

刷新用户令牌​

GET
/v2/auth/token?grant_type=refresh_token
  • 开发者可通过 refresh_token 刷新获取全新的 access_token,从而避免用户频繁重复授权的问题。PingCode 中 refresh_token 的默认有效期为 90 天;删除应用或重置应用密钥(Secret),都会导致当前令牌立即失效。

参数​

查询参数

grant_type*

授权类型,这里固定为:refresh_token。

类型
string
必填
默认
"refresh_token"
refresh_token*

通过 authorization_code 获取 access_token 时,一起返回的 refresh_token。

类型
string
必填

响应​

响应示例:

application/json

令牌

刷新令牌

令牌类型

过期时间

示例​

举报邮箱:abuse@worktile.com