From 615ffca61fcc90b11b04c8d115018a26a4a63a33 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sat, 20 Jul 2019 23:47:41 +0800 Subject: WIP: Change the JwtService. --- Timeline/Configs/JwtConfig.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Timeline/Configs/JwtConfig.cs') 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; } + + /// + /// Set the default value of expire offset of jwt token. + /// Unit is second. Default is 3600 seconds, aka 1 hour. + /// + public long DefaultExpireOffset { get; set; } = 3600; } } -- cgit v1.2.3