using UniVerse.Domain.Enums;

namespace UniVerse.Application.DTOs.Auth;

public record AuthResponse(string AccessToken, DateTime ExpiresAt, UserAuthDto User);
public record AuthResult(AuthResponse Response, string RefreshToken);

public record UserAuthDto(int Id, string Email, string? DisplayName, IReadOnlyList<UserRole> Roles);

public record LoginMicrosoftRequest(string AuthorizationCode, string? RedirectUri = null);

public record DevLoginRequest(string Email, string? DisplayName = null, IReadOnlyList<UserRole>? Roles = null);
