aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Configs/JwtConfig.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-20 23:47:41 +0800
committer杨宇千 <crupest@outlook.com>2019-07-20 23:47:41 +0800
commit2556e3bf0eac76af2efa63026fe440b1344e7a5d (patch)
treeb0f75d1c1613a2686e62edb95d858021beae9f01 /Timeline/Configs/JwtConfig.cs
parent8fcc916d53443936e4d504067caf0f55f3b141ae (diff)
downloadtimeline-2556e3bf0eac76af2efa63026fe440b1344e7a5d.tar.gz
timeline-2556e3bf0eac76af2efa63026fe440b1344e7a5d.tar.bz2
timeline-2556e3bf0eac76af2efa63026fe440b1344e7a5d.zip
WIP: Change the JwtService.
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;
}
}