mirror of
https://github.com/Hello-hao/Tbed.git
synced 2026-10-19 16:14:40 +00:00
update codes
This commit is contained in:
@@ -36,7 +36,7 @@ public class JWTUtil {
|
||||
}
|
||||
|
||||
public static JSONObject checkToken(String token){
|
||||
JWTVerifier jwtVerifier = JWT.require(Algorithm.HMAC256(SECRET)).build();//验证对象
|
||||
JWTVerifier jwtVerifier = JWT.require(Algorithm.HMAC256(SECRET)).build();
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
if(null==token){
|
||||
jsonObject.put("check",false);
|
||||
|
||||
Reference in New Issue
Block a user