CodeLiturgy.Dashboard/CodeLiturgy.Views/Application/Users/Auth/IAuthManager.cs

27 lines
581 B
C#
Raw Normal View History

2022-09-26 04:40:18 +03:00
using System;
using System.Security.Claims;
using System.Threading.Tasks;
2022-11-18 03:15:53 +03:00
using CodeLiturgy.Data.Application;
2022-09-26 04:40:18 +03:00
using Microsoft.AspNetCore.Identity;
2022-11-18 03:15:53 +03:00
namespace CodeLiturgy.Data.Auth.Context.Users;
2022-09-26 04:40:18 +03:00
/// <summary>
/// Auth manager contract interface.
/// </summary>
public interface IAuthManager
{
/// <summary>
/// CreateUserAsync
/// </summary>
2022-10-27 20:13:02 +03:00
/// <param name="registerRequest"></param>
2022-09-26 04:40:18 +03:00
/// <returns></returns>
2022-10-27 20:13:02 +03:00
Task<IdentityResult> CreateUserAsync(RegisterRequest registerRequest);
2022-11-13 14:27:48 +03:00
Task<(ClaimsIdentity, bool)> DoLogin(LoginRequest loginRequest);
2022-09-26 04:40:18 +03:00
}