mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-02 11:57:40 +08:00
刷新access_token时不改变refresh_token
This commit is contained in:
parent
7e0f592a0f
commit
4617ac8226
@ -368,6 +368,7 @@ public interface SaOAuth2Interface {
|
||||
}
|
||||
// 获取新的 AccessToken 并保存
|
||||
AccessTokenModel tokenModel = converCodeToAccessToken(codeModel);
|
||||
tokenModel.setRefreshToken(refreshToken);
|
||||
SaTokenManager.getSaTokenDao().setObject(getKeyAccessToken(tokenModel.getAccessToken()), tokenModel, SaOAuth2Manager.getConfig().getAccessTokenTimeout());
|
||||
|
||||
// 返回
|
||||
|
Loading…
Reference in New Issue
Block a user