Authentication Service
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace Server.Networking.Messages;
|
||||
|
||||
public sealed record AuthRegisterRequest(string Username, string Password, string? Email);
|
||||
public sealed record AuthRegisterResponse(bool Ok, string? Error, string? Message);
|
||||
|
||||
public sealed record AuthLoginRequest(string UsernameOrEmail, string Password);
|
||||
public sealed record AuthLoginResponse(bool Ok, string? Error, string? Token, ulong AccountId, System.DateTime? BannedUntilUtc);
|
||||
|
||||
public sealed record AuthWithTokenRequest(string Token);
|
||||
public sealed record AuthWithTokenResponse(bool Ok, string? Error, ulong AccountId);
|
||||
Reference in New Issue
Block a user