using ExpenseTracker.Application.Common.Interfaces.Services; using MediatR; namespace ExpenseTracker.Application.Authentication.Queries.Login; public class LoginQueryHandler : IRequestHandler { private readonly IAuthenticationService _authenticationService; public LoginQueryHandler(IAuthenticationService authenticationService) { _authenticationService = authenticationService; } public async Task Handle(LoginQuery request, CancellationToken cancellationToken) { return await _authenticationService.LoginAsync(request.Email, request.Password, cancellationToken); } }