aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Configs/JwtConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/Configs/JwtConfig.cs')
-rw-r--r--Timeline/Configs/JwtConfig.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Timeline/Configs/JwtConfig.cs b/Timeline/Configs/JwtConfig.cs
index 9550424e..1b395650 100644
--- a/Timeline/Configs/JwtConfig.cs
+++ b/Timeline/Configs/JwtConfig.cs
@@ -5,5 +5,11 @@ namespace Timeline.Configs
public string Issuer { get; set; }
public string Audience { get; set; }
public string SigningKey { get; set; }
+
+ /// <summary>
+ /// Set the default value of expire offset of jwt token.
+ /// Unit is second. Default is 3600 seconds, aka 1 hour.
+ /// </summary>
+ public long DefaultExpireOffset { get; set; } = 3600;
}
}