Authentication Service

This commit is contained in:
dingo
2025-11-10 09:01:46 -05:00
parent 72bc097a71
commit a45cc41f4a
16 changed files with 1016 additions and 23 deletions
+10
View File
@@ -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);