Skip to content

Commit

Permalink
[ISSUE #12509] Fix nacos-client updating accessToken bug. (#12510)
Browse files Browse the repository at this point in the history
  • Loading branch information
liqipeng committed Aug 19, 2024
1 parent 106a1d5 commit 9efee81
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ public Boolean login(Properties properties) {
tokenTtl = Long.parseLong(identityContext.getParameter(NacosAuthLoginConstant.TOKENTTL));
tokenRefreshWindow = tokenTtl / 10;
lastRefreshTime = System.currentTimeMillis();
loginIdentityContext = new LoginIdentityContext();
loginIdentityContext.setParameter(NacosAuthLoginConstant.ACCESSTOKEN,

LoginIdentityContext newCtx = new LoginIdentityContext();
newCtx.setParameter(NacosAuthLoginConstant.ACCESSTOKEN,
identityContext.getParameter(NacosAuthLoginConstant.ACCESSTOKEN));
this.loginIdentityContext = newCtx;
}
return true;
}
Expand Down

0 comments on commit 9efee81

Please sign in to comment.