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,20 @@
using MealPlan.Api.Models;
namespace MealPlan.Api.Services;
/// <summary>
/// Stores issued refresh tokens. Backed by an in-memory implementation because the
/// existing database schema must not be modified and no migrations may be added.
/// </summary>
public interface IRefreshTokenStore
{
void Add(RefreshToken token);
RefreshToken? Get(string token);
/// <summary>Marks a token revoked. Returns the revoked token if it existed and was active.</summary>
RefreshToken? Revoke(string token);
/// <summary>Removes expired/revoked tokens to bound memory usage.</summary>
void RemoveExpired();
}