- JWT-Authentifizierung prüft nun, ob User aktiv und existent ist - Session-Validierung beim App-Start via ValidateSessionAsync - Ungültige Sessions werden entfernt, SignalR-Verbindung getrennt - ApiService und IApiService um ValidateSessionAsync erweitert - LoginViewModel nutzt Session-Check und behandelt SignalR-Fehler - UI für eigene Phrasen auf <Border> mit Stil-Anpassung umgestellt
12 lines
437 B
C#
12 lines
437 B
C#
using SlipItIn.Shared.DTOs;
|
|
|
|
namespace SlipItIn.Services.Interfaces;
|
|
|
|
public interface IApiService
|
|
{
|
|
Task<AuthResponseDto> RegisterAsync(RegisterRequestDto request, CancellationToken cancellationToken = default);
|
|
Task<AuthResponseDto> LoginAsync(LoginRequestDto request, CancellationToken cancellationToken = default);
|
|
Task<bool> ValidateSessionAsync(CancellationToken cancellationToken = default);
|
|
Task LogoutAsync();
|
|
}
|