Files
meezi/src/Meezi.API/Models/Auth/AuthDtos.cs
T

28 lines
887 B
C#
Raw Normal View History

2026-05-27 21:33:48 +03:30
namespace Meezi.API.Models.Auth;
public record SendOtpRequest(string Phone);
public record VerifyOtpRequest(string Phone, string Code, string? CafeId = null);
public record RefreshTokenRequest(string RefreshToken);
2026-05-29 10:18:47 +03:30
/// <summary>Step 1 of self-registration: send OTP to a new phone number.</summary>
public record RegisterRequest(string Phone, string CafeName);
/// <summary>Step 2 of self-registration: verify OTP and create the cafe account.</summary>
public record VerifyRegisterRequest(string Phone, string Code);
2026-05-27 21:33:48 +03:30
public record AuthTokenResponse(
string AccessToken,
string RefreshToken,
DateTime ExpiresAt,
string UserId,
string CafeId,
string Role,
string PlanTier,
string Language,
string Actor = Meezi.Core.Constants.MeeziActorKinds.Merchant,
string? BranchId = null);
public record SendOtpResponse(bool Sent, int ExpiresInSeconds);