Initial commit

This commit is contained in:
2026-06-04 06:24:56 +02:00
commit 282f4864c4
111 changed files with 8083 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using MealPlan.Api.DTOs.Auth;
namespace MealPlan.Api.Services;
public interface IAuthService
{
Task<AuthResult> RegisterAsync(RegisterRequestDto request, CancellationToken ct = default);
Task<AuthResult> LoginAsync(LoginRequestDto request, CancellationToken ct = default);
/// <summary>Validates and rotates a refresh token, issuing a fresh token pair.</summary>
Task<AuthResult> RefreshAsync(string refreshToken, CancellationToken ct = default);
/// <summary>Revokes the supplied refresh token. Idempotent.</summary>
void Logout(string refreshToken);
Task<UserInfoDto?> GetUserInfoAsync(string userId, CancellationToken ct = default);
}