mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
refactor: change jwt claims to lowercase; use response dtos for sensitive data fix: nullify user on token clears; change appsettings.dev View_Internal_API_Key
23 lines
573 B
C#
23 lines
573 B
C#
namespace SharpbinV3.Server.DTOs.Auth
|
|
{
|
|
public class LoginResponseDto
|
|
{
|
|
public bool Success { get; set; }
|
|
public string Token { get; set; } = string.Empty;
|
|
public string RefreshToken { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class TokenRefreshResponseDto
|
|
{
|
|
public bool Success { get; set; }
|
|
public string? Message { get; set; }
|
|
public TokenData? Token { get; set; }
|
|
}
|
|
|
|
public class TokenData
|
|
{
|
|
public string? Token { get; set; }
|
|
public string? RefreshToken { get; set; }
|
|
}
|
|
}
|