Commit 49dbf8f1 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Change JWT Existence time

parent 7fb4f8d6
...@@ -77,7 +77,7 @@ namespace Coscine.Api.Project ...@@ -77,7 +77,7 @@ namespace Coscine.Api.Project
var payloadClaims = payloadContents.Select(c => new Claim(c.Key, c.Value)); var payloadClaims = payloadContents.Select(c => new Claim(c.Key, c.Value));
DateTime centuryBegin = new DateTime(1970, 1, 1); DateTime centuryBegin = new DateTime(1970, 1, 1);
var exp = new TimeSpan(DateTime.Now.AddYears(1).Ticks - centuryBegin.Ticks).TotalSeconds; var exp = new TimeSpan(DateTime.Now.AddMinutes(30).Ticks - centuryBegin.Ticks).TotalSeconds;
var now = new TimeSpan(DateTime.Now.Ticks - centuryBegin.Ticks).TotalSeconds; var now = new TimeSpan(DateTime.Now.Ticks - centuryBegin.Ticks).TotalSeconds;
var payload = new JwtPayload(payloadClaims); var payload = new JwtPayload(payloadClaims);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment