auto.bus_api/BackEnd (ASP.NET Web API)/Server/Services/IAuthenticationService.cs

16 lines
564 B
C#

using Server.Models;
using SharedModels.Requests;
using SharedModels.Responses;
namespace Server.Services;
public interface IAuthenticationService
{
Task<(bool succeeded, string message)> RegisterAsync(RegistrationRequest regRequest);
Task<(bool succeeded, AuthenticationResponse authResponse, string? refreshToken)> AuthenticateAsync(AuthenticationRequest authRequest);
Task<(bool succeeded, AuthenticationResponse authResponse, string? refreshToken)> RenewRefreshTokenAsync(string? token);
Task<bool> RevokeRefreshToken(string? token);
}