Files
the-biergarten-app/web/backend/Features/Features.Users/Commands/Authentication/Login/LoginCommand.cs

11 lines
377 B
C#

using Features.Auth.Dtos;
using MediatR;
namespace Features.Auth.Commands.Authentication.Login;
/// <summary>
/// Authenticates a user using their username and password and issues new tokens. Bound directly
/// from the request body of <c>POST /api/auth/login</c>.
/// </summary>
public record LoginCommand(string Username, string Password) : IRequest<LoginPayload>;