Sube carpetas API, API.Tests, Application y Domain del Backend

This commit is contained in:
FrancoRu
2026-09-18 13:35:59 -03:00
parent bbb09554bb
commit 2eb4eeef03
572 changed files with 56405 additions and 0 deletions
@@ -0,0 +1,12 @@
namespace Application.Utils.Constants.Auth;
/// <summary>
/// Application-specific JWT claim types that are not part of the standard ClaimTypes set.
/// </summary>
public static class CustomClaimTypes
{
/// <summary>
/// Boolean claim, stored as the string true or false, indicating the user must change their password before most endpoints.
/// </summary>
public const string MustChangePassword = "must_change_password";
}
@@ -0,0 +1,14 @@
namespace Application.Utils.Constants.Auth;
/// <summary>
/// Durations and sizes applied when issuing JWT access/refresh tokens.
/// </summary>
public static class TokenLifetime
{
public const int AccessTokenExpiryHours = 24;
/// <summary>
/// Size, in bytes, of the cryptographically random refresh token.
/// </summary>
public const int RefreshTokenByteLength = 64;
}