aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Configs/JwtConfig.cs
blob: 4d5ef97f98ac664e91334e7475a0f57cddeeaf1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Timeline.Configs
{
    public class JwtConfig
    {
        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 * 24 seconds, aka 1 day.
        /// </summary>
        public long DefaultExpireOffset { get; set; } = 3600 * 24;
    }
}