using Google.Apis.Oauth2.v2.Data; using Hutopy.Application.Common.Models; namespace Hutopy.Application.Common.Interfaces; public interface IIdentityService { Task GetUserNameAsync(string userId); Task CreateUserAsync(string email, string userName, string firstName, string lastName, string password); Task FindUserByIdAsync(string id); Task GetCurrentUserAsync(); Task FindUserByEmailAsync(string id); Task LoginAsync(string email, string password); Task GetUserByUserNameAsync(string userName); Task IsInRoleAsync(string userId, string role); Task AuthorizeAsync(string userId, string policyName); Task AddRoleAsync(string userId, string role); Task> GetCurrentUserRolesAsync(); Task<(Result Result, string UserId)> CreateUserAsync(Userinfo userInfo); Task DeleteUserAsync(string userId); }