From 3fa9899e17df4b1012e8b645915ac15022b84f9b Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 21 Feb 2020 11:59:58 +0800 Subject: Migrate to use sqlite. --- Timeline/Configs/JwtConfiguration.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Timeline/Configs/JwtConfiguration.cs (limited to 'Timeline/Configs/JwtConfiguration.cs') diff --git a/Timeline/Configs/JwtConfiguration.cs b/Timeline/Configs/JwtConfiguration.cs new file mode 100644 index 00000000..fc27f4ee --- /dev/null +++ b/Timeline/Configs/JwtConfiguration.cs @@ -0,0 +1,15 @@ +namespace Timeline.Configs +{ + public class JwtConfiguration + { + public string Issuer { get; set; } = default!; + public string Audience { get; set; } = default!; + public string SigningKey { get; set; } = default!; + + /// + /// Set the default value of expire offset of jwt token. + /// Unit is second. Default is 3600 * 24 seconds, aka 1 day. + /// + public long DefaultExpireOffset { get; set; } = 3600 * 24; + } +} -- cgit v1.2.3