aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Configs/TokenOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Configs/TokenOptions.cs')
-rw-r--r--BackEnd/Timeline/Configs/TokenOptions.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/BackEnd/Timeline/Configs/TokenOptions.cs b/BackEnd/Timeline/Configs/TokenOptions.cs
index e7d4d9e7..d8e968c7 100644
--- a/BackEnd/Timeline/Configs/TokenOptions.cs
+++ b/BackEnd/Timeline/Configs/TokenOptions.cs
@@ -2,10 +2,11 @@
{
public class TokenOptions
{
- /// <summary>
- /// Set the default value of expire offset of jwt token.
- /// Unit is second. Default is 3600 * 24 seconds, aka 1 day.
+ /// <summary>
+ /// The length of the generated secure random token counted in byte.
+ /// Note the byte will be converted to hex form when used.
+ /// Default is 32 byte long.
/// </summary>
- public long DefaultExpireSeconds { get; set; } = 3600 * 24;
+ public long? TokenLength { get; set; }
}
}