autobus-api_old/AutobusApi.Application/Common/Interfaces/IIdentityService.cs
2023-11-15 19:00:34 +02:00

15 lines
537 B
C#

using AutobusApi.Application.Common.Models.Identity;
namespace AutobusApi.Application.Common.Interfaces;
public interface IIdentityService
{
Task RegisterAsync(string email, string password, CancellationToken cancellationToken);
Task<TokensModel> LoginAsync(string email, string password, CancellationToken cancellationToken);
Task<TokensModel> RenewAccessTokenAsync(string refreshToken, CancellationToken cancellationToken);
Task RevokeRefreshTokenAsync(string refreshToken, CancellationToken cancellationToken);
}