Skip to content

Commit

Permalink
Fix a bug when building tokens (halo-dev#435)
Browse files Browse the repository at this point in the history
Fix a bug when building tokens
  • Loading branch information
ruibaby authored Dec 22, 2019
2 parents 0fe4f95 + f082c90 commit 281d49b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private AuthToken buildAuthToken(@NonNull User user) {
token.setRefreshToken(HaloUtils.randomUUIDWithoutDash());

// Cache those tokens, just for clearing
cacheStore.putAny(SecurityUtils.buildAccessTokenKey(user), token.getAccessToken(), REFRESH_TOKEN_EXPIRED_DAYS, TimeUnit.DAYS);
cacheStore.putAny(SecurityUtils.buildAccessTokenKey(user), token.getAccessToken(), ACCESS_TOKEN_EXPIRED_SECONDS, TimeUnit.SECONDS);
cacheStore.putAny(SecurityUtils.buildRefreshTokenKey(user), token.getRefreshToken(), REFRESH_TOKEN_EXPIRED_DAYS, TimeUnit.DAYS);

// Cache those tokens with user id
Expand Down

0 comments on commit 281d49b

Please sign in to comment.