Add: JWT authentication in Web API. Related configuration and services are added.
12 lines
224 B
C#
12 lines
224 B
C#
namespace OptixServe.Api.Dtos;
|
|
|
|
public record LoginRequestDto
|
|
{
|
|
public string? UserName { get; set; }
|
|
public string? Password { get; set; }
|
|
}
|
|
|
|
public record LoginResponseDto
|
|
{
|
|
public string? Token { get; set; }
|
|
} |