15 lines
537 B
C#
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);
|
|
}
|