Files
systemrevivalserver/Networking/Messages/AuthContracts.cs
T
2025-11-10 09:01:46 -05:00

10 lines
569 B
C#

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);