Sube carpetas API, API.Tests, Application y Domain del Backend
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user