mirror of https://github.com/halo-dev/halo
parent
5e91fc4f6a
commit
6264517196
|
@ -439,7 +439,7 @@ public class AdminServiceImpl implements AdminService {
|
||||||
token.setRefreshToken(HaloUtils.randomUUIDWithoutDash());
|
token.setRefreshToken(HaloUtils.randomUUIDWithoutDash());
|
||||||
|
|
||||||
// Cache those tokens, just for clearing
|
// 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.DAYS);
|
||||||
cacheStore.putAny(SecurityUtils.buildRefreshTokenKey(user), token.getRefreshToken(), REFRESH_TOKEN_EXPIRED_DAYS, TimeUnit.DAYS);
|
cacheStore.putAny(SecurityUtils.buildRefreshTokenKey(user), token.getRefreshToken(), REFRESH_TOKEN_EXPIRED_DAYS, TimeUnit.DAYS);
|
||||||
|
|
||||||
// Cache those tokens with user id
|
// Cache those tokens with user id
|
||||||
|
|
Loading…
Reference in New Issue