aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Configs/JwtConfiguration.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/Configs/JwtConfiguration.cs')
-rw-r--r--Timeline/Configs/JwtConfiguration.cs15
1 files changed, 15 insertions, 0 deletions
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!;
+
+ /// <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;
+ }
+}