feat(infra): add RefreshTokenDays to JwtOptions and AuthOptions config
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"Issuer": "sigcm2.api",
|
||||
"Audience": "sigcm2.web",
|
||||
"AccessTokenMinutes": 60,
|
||||
"RefreshTokenDays": 7,
|
||||
"PrivateKeyPath": "keys/private.pem",
|
||||
"PublicKeyPath": "keys/public.pem",
|
||||
"PrivateKey": null,
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user