mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(auth) Optimize the code to support configurable token timeout duration, with a default value set to 2 hours. (#1077)
This commit is contained in:
@@ -33,4 +33,6 @@ public class AuthenticationConfig {
|
||||
@Value("${authentication.app.signature:signature}")
|
||||
private String signature;
|
||||
|
||||
@Value("${authentication.token.timeout:7200000}")
|
||||
private Long tokenTimeout;
|
||||
}
|
||||
|
||||
@@ -19,10 +19,6 @@ public class UserConstants {
|
||||
public static final String TOKEN_CREATE_TIME = "token_create_time";
|
||||
|
||||
public static final String TOKEN_PREFIX = "Bearer";
|
||||
|
||||
public static final Long TOKEN_TIME_OUT = 25920000000L;
|
||||
|
||||
public static final String INTERNAL = "internal";
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user