mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-22 18:29:51 +08:00
完成登录校验
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
package xyz.playedu.api.service;
|
||||
|
||||
import xyz.playedu.api.exception.JwtLogoutException;
|
||||
import xyz.playedu.api.types.JWTPayload;
|
||||
import xyz.playedu.api.types.JwtToken;
|
||||
|
||||
public interface JWTService {
|
||||
JwtToken generate(Integer userId, String iss, String prv);
|
||||
|
||||
boolean isInBlack(String jti);
|
||||
|
||||
void logout(String token, String prv) throws JwtLogoutException;
|
||||
|
||||
JWTPayload parse(String token, String prv) throws JwtLogoutException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user