access_token 有效期:非固定时间,以接口返回时间为主,有变动可能。refresh_token有效期:非固定时间,以接口返回时间为主,有变动可能。access_token失效之前或者之后,都可以使用有效的refresh_token去获取一个新的access_token:access_token互不干扰,过期时间独立计算,可以同时有效。refresh_token,同时废弃掉老的refresh_token,但过期时间会继承上一个refresh_token 的过期时间。特别注意: 当 refresh_token过期之后,当用户再次使用时,需要第三方主动引导用户再次授权。
curl --location --request GET 'https://open.kuaishou.com/oauth2/refresh_token?app_id='{
"result": 1,
"access_token": "xxxxxxx",
"expires_in": 3600,
"refresh_token": "xxxxxx",
"refresh_token_expires_in": 648000,
"scopes": [
"user_info"
]
}