16 lines
458 B
C#
16 lines
458 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<AuthenticationResponse> AuthenticateAsync(AuthenticationRequest authRequest);
|
|
|
|
Task<AuthenticationResponse> RenewRefreshTokenAsync(string? token);
|
|
|
|
Task<bool> RevokeRefreshToken(string? token);
|
|
} |