Skip to content

Commit

Permalink
feat(authentication): extend authentication cookie expiration to a week
Browse files Browse the repository at this point in the history
  • Loading branch information
undrcrxwn committed Jul 28, 2024
1 parent c90c899 commit f852655
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static IServiceCollection ConfigureAuthentication(this IServiceCollection
options.Cookie.Name = ".CrowdParlay.Authentication";
options.Cookie.HttpOnly = true;
options.Cookie.SecurePolicy = CookieSecurePolicy.SameAsRequest;
options.ExpireTimeSpan = TimeSpan.FromMinutes(15);
options.ExpireTimeSpan = TimeSpan.FromDays(7);
options.SlidingExpiration = true;
options.Events.OnRedirectToLogin = _ => Task.CompletedTask;
});
Expand Down

0 comments on commit f852655

Please sign in to comment.