diff options
author | crupest <crupest@outlook.com> | 2022-03-23 21:30:14 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-03-23 21:30:31 +0800 |
commit | da9139b7bab95f6e5ba5f4bb2d99011c2d6db03a (patch) | |
tree | 051fd4ca4bc511db7e04b019a33fddaab2d0cc6b /BackEnd/Timeline/Configs/TokenOptions.cs | |
parent | 3d6c9fd916e18c99b3a5497b8313672680571b5e (diff) | |
download | timeline-da9139b7bab95f6e5ba5f4bb2d99011c2d6db03a.tar.gz timeline-da9139b7bab95f6e5ba5f4bb2d99011c2d6db03a.tar.bz2 timeline-da9139b7bab95f6e5ba5f4bb2d99011c2d6db03a.zip |
…
Diffstat (limited to 'BackEnd/Timeline/Configs/TokenOptions.cs')
-rw-r--r-- | BackEnd/Timeline/Configs/TokenOptions.cs | 9 |
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; }
}
}
|