mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-27 02:59:02 +08:00
v1.30.0.RC
This commit is contained in:
@@ -122,6 +122,11 @@ public class SaJwtUtil {
|
||||
*/
|
||||
public static JWT parseToken(String token, String loginType, String keyt, boolean isCheckTimeout) {
|
||||
|
||||
// 秘钥不可以为空
|
||||
if(keyt == null) {
|
||||
throw new SaJwtException("请配置 jwt 秘钥");
|
||||
}
|
||||
|
||||
// 如果token为null
|
||||
if(token == null) {
|
||||
throw new SaJwtException("jwt 字符串不可为空");
|
||||
|
||||
Reference in New Issue
Block a user