CodeLiturgy.Dashboard/BlueWest.Api/Users/Auth/IAuthManager.cs

33 lines
859 B
C#

using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
namespace BlueWest.WebApi.Context.Users;
/// <summary>
/// Auth manager contract interface.
/// </summary>
public interface IAuthManager
{
/// <summary>
/// CreateUserAsync
/// </summary>
/// <param name="registerViewModel"></param>
/// <returns></returns>
Task<IdentityResult> CreateUserAsync(RegisterViewModel registerViewModel);
/// <summary>
/// VerifyLoginAsync
/// </summary>
/// <param name="email"></param>
/// <param name="password"></param>
/// <returns></returns>
Task<bool> VerifyLoginAsync(string email, string password);
/// <summary>
/// GetToken
/// </summary>
/// <param name="loginViewModel"></param>
/// <returns></returns>
Task<AccessToken> GetToken(LoginViewModel loginViewModel);
}