Files
UniVerse/backend/UniVerse.Application/Interfaces/IAuthService.cs
T

14 lines
522 B
C#

using UniVerse.Application.DTOs.Auth;
using UniVerse.Application.DTOs.Users;
namespace UniVerse.Application.Interfaces;
public interface IAuthService
{
Task<AuthResult> LoginWithMicrosoftAsync(string authorizationCode, string? redirectUri = null);
Task<AuthResult> DevLoginAsync(string email, string? displayName, Domain.Enums.UserRole role);
Task<AuthResult> RefreshTokenAsync(string refreshToken);
Task RevokeRefreshTokenAsync(string refreshToken);
Task<UserDto> GetCurrentUserAsync(int userId);
}