diff options
author | crupest <crupest@outlook.com> | 2021-04-24 22:01:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-24 22:01:27 +0800 |
commit | 7c37a5885437aaf97b9986b7cc2941b5e4316003 (patch) | |
tree | c3b9b733e269b4f187f24a12dc08e1f1c88bd7a6 /BackEnd/Timeline/Configs/TokenOptions.cs | |
parent | 6877db6a535e57fd1d7e01c966a6451dc6f186f0 (diff) | |
download | timeline-7c37a5885437aaf97b9986b7cc2941b5e4316003.tar.gz timeline-7c37a5885437aaf97b9986b7cc2941b5e4316003.tar.bz2 timeline-7c37a5885437aaf97b9986b7cc2941b5e4316003.zip |
refactor: Move token services.
Diffstat (limited to 'BackEnd/Timeline/Configs/TokenOptions.cs')
-rw-r--r-- | BackEnd/Timeline/Configs/TokenOptions.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Configs/TokenOptions.cs b/BackEnd/Timeline/Configs/TokenOptions.cs new file mode 100644 index 00000000..e7d4d9e7 --- /dev/null +++ b/BackEnd/Timeline/Configs/TokenOptions.cs @@ -0,0 +1,11 @@ +namespace Timeline.Configs
+{
+ 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>
+ public long DefaultExpireSeconds { get; set; } = 3600 * 24;
+ }
+}
|