refactor: add IIdentityService abstraction to Application layer

This commit is contained in:
2026-05-11 18:06:08 +00:00
parent a3ded70977
commit 62ad64b1e4
@@ -0,0 +1,14 @@
using FluentResults;
using NexusReader.Application.DTOs.User;
namespace NexusReader.Application.Abstractions.Services;
public interface IIdentityService
{
event Func<Task>? OnStateInvalidated;
Task<Result> RegisterAsync(string email, string password);
Task<Result> LoginAsync(string email, string password, bool rememberMe = false);
Task<Result> LogoutAsync();
Task<Result<UserProfileDto>> GetProfileAsync();
Task<Result> RefreshTokenAsync();
}