Skip to content

Commit

Permalink
[ISSUE alibaba#12509] Fix nacos-client updating accessToken bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
liqipeng committed Aug 18, 2024
1 parent 106a1d5 commit 103457c
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 103457c

Please sign in to comment.