mirror of https://github.com/halo-dev/halo
commit
281d49b51c
|
@ -439,7 +439,7 @@ public class AdminServiceImpl implements AdminService {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue