diff options
Diffstat (limited to 'Timeline/Configs')
-rw-r--r-- | Timeline/Configs/JwtConfig.cs | 6 |
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; } } |