First successfull build
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Services
|
||||
using EnvelopeGenerator.ReceiverUI.Client.Services.Base;
|
||||
|
||||
namespace EnvelopeGenerator.ReceiverUI.Client.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Kommuniziert mit dem AuthController der API.
|
||||
///
|
||||
/// WARUM Interface + Implementierung?
|
||||
/// - Testbarkeit: In Unit-Tests kann man einen Mock verwenden
|
||||
/// - Austauschbarkeit: Wenn sich die API ändert, ändert sich nur die Implementierung
|
||||
/// - Blazor-Konvention: Services werden über Interfaces per DI registriert
|
||||
/// </summary>
|
||||
public interface IAuthService
|
||||
{
|
||||
public interface IAuthService
|
||||
{
|
||||
}
|
||||
}
|
||||
/// <summary>Prüft ob der Nutzer eingeloggt ist → GET /api/auth/check</summary>
|
||||
Task<ApiResponse> CheckAuthAsync(string? role = null, CancellationToken ct = default);
|
||||
|
||||
/// <summary>Logout → POST /api/auth/logout</summary>
|
||||
Task<ApiResponse> LogoutAsync(CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user