20 lines
418 B
C#
20 lines
418 B
C#
namespace JWTdemo.Models;
|
|
|
|
using JWTdemo.Entities;
|
|
|
|
public class AuthenticateResponse
|
|
{
|
|
public int Id { get; set; }
|
|
public string? Name { get; set; }
|
|
public string? Username { get; set; }
|
|
public string Token { get; set; }
|
|
|
|
|
|
public AuthenticateResponse(User user, string token)
|
|
{
|
|
Id = user.Id;
|
|
Name = user.Name;
|
|
Username = user.Username;
|
|
Token = token;
|
|
}
|
|
} |