classlib/ExpenseTracker.Application/Common/Interfaces/Services/IAuthenticationService.cs
2024-08-07 21:12:02 +03:00

17 lines
657 B
C#

using ExpenseTracker.Application.Authentication;
namespace ExpenseTracker.Application.Common.Interfaces.Services;
public interface IAuthenticationService
{
Task RegisterWithEmailAndPasswordAsync(string email, string password, CancellationToken cancellationToken);
Task RegisterWithEmailAsync(string email, CancellationToken cancellationToken);
Task<TokensModel> LoginAsync(string email, string password, CancellationToken cancellationToken);
Task<TokensModel> RenewAccessTokenAsync(string refreshToken, CancellationToken cancellationToken);
Task RevokeRefreshTokenAsync(string refreshToken, CancellationToken cancellationToken);
}