Custom Authentication Handler

This commit is contained in:
Benjamin Elsdon
2022-05-02 17:25:26 +08:00
committed by Melledy
Unverified
parent 186c6bcf89
commit 73fc9fe4cc
3 changed files with 139 additions and 57 deletions
@@ -0,0 +1,16 @@
package emu.grasscutter.server.dispatch.authentication;
import emu.grasscutter.server.dispatch.json.LoginAccountRequestJson;
import emu.grasscutter.server.dispatch.json.LoginResultJson;
import express.http.Request;
import express.http.Response;
public interface AuthenticationHandler {
// This is in case plugins also want some sort of authentication
void handleLogin(Request req, Response res);
void handleRegister(Request req, Response res);
void handleChangePassword(Request req, Response res);
LoginResultJson handleGameLogin(Request req, LoginAccountRequestJson requestData);
}