Files
UniVerse/backend/UniVerse.Application/Interfaces/IAuthService.cs
T
serega404 038f0d89a6
gitea-push-docker.yml (push) Invalid workflow file
Backend CI / build-and-test (push) Successful in 3m34s
Frontend CI / build-and-check (push) Failing after 21s
feat: добавил отображение аватарки
2026-10-01 00:17:16 +03:00

15 lines
656 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, string? ipAddress = null);
Task<AuthResult> DevLoginAsync(string email, string? displayName, IReadOnlyCollection<Domain.Enums.UserRole> roles, string? ipAddress = null);
Task<AuthResult> RefreshTokenAsync(string refreshToken);
Task RevokeRefreshTokenAsync(string refreshToken);
Task RemoveMicrosoftTokenCacheAsync(int userId);
Task<CurrentUserDto> GetCurrentUserAsync(int userId);
}