aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Configs
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
commit615ffca61fcc90b11b04c8d115018a26a4a63a33 (patch)
treeb0f75d1c1613a2686e62edb95d858021beae9f01 /Timeline/Configs
parenteb50fc7ad1252d0e397e969e1a7eb33720150b00 (diff)
downloadtimeline-615ffca61fcc90b11b04c8d115018a26a4a63a33.tar.gz
timeline-615ffca61fcc90b11b04c8d115018a26a4a63a33.tar.bz2
timeline-615ffca61fcc90b11b04c8d115018a26a4a63a33.zip
WIP: Change the JwtService.
Diffstat (limited to 'Timeline/Configs')
-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;
}
}