feat(infra): add RefreshTokenDays to JwtOptions and AuthOptions config

This commit is contained in:
2026-04-14 13:28:35 -03:00
parent 0c809da633
commit 19ac807500
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
"Issuer": "sigcm2.api",
"Audience": "sigcm2.web",
"AccessTokenMinutes": 60,
"RefreshTokenDays": 7,
"PrivateKeyPath": "keys/private.pem",
"PublicKeyPath": "keys/public.pem",
"PrivateKey": null,

View File

@@ -5,6 +5,7 @@ public sealed class JwtOptions
public string Issuer { get; set; } = "sigcm2.api";
public string Audience { get; set; } = "sigcm2.web";
public int AccessTokenMinutes { get; set; } = 60;
public int RefreshTokenDays { get; set; } = 7;
/// <summary>Path to private.pem file (dev). Used if PrivateKey is null.</summary>
public string? PrivateKeyPath { get; set; }