完成登录校验

This commit is contained in:
none
2023-02-17 12:07:15 +08:00
parent 24a9db11c1
commit bd5cf234f1
15 changed files with 232 additions and 79 deletions

View File

@@ -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;
}