aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Configs/JwtConfig.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-27 21:47:14 +0800
committerGitHub <noreply@github.com>2019-07-27 21:47:14 +0800
commitdc8269f1034d155e74ea4807d44c755fb83a7630 (patch)
tree572a2ae5c65c484718b3bfda68fd8babc56fe6f2 /Timeline/Configs/JwtConfig.cs
parentf0a317cc511a4a7b04a701c32881d1e3331f3711 (diff)
parentcccaf4cfdc1b932882768975f409763c22ed1ee1 (diff)
downloadtimeline-dc8269f1034d155e74ea4807d44c755fb83a7630.tar.gz
timeline-dc8269f1034d155e74ea4807d44c755fb83a7630.tar.bz2
timeline-dc8269f1034d155e74ea4807d44c755fb83a7630.zip
Merge pull request #25 from crupest/auth
Refactor a lot, especially authentication.
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..4d5ef97f 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 * 24 seconds, aka 1 day.
+ /// </summary>
+ public long DefaultExpireOffset { get; set; } = 3600 * 24;
}
}