Skip to content

Commit

Permalink
increase jwt expiration time to 30 min
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphoeninger committed Oct 30, 2024
1 parent 75b7d68 commit 587fbfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace API.FileSharing.Controllers.Identity;
namespace API.FileSharing.Controllers.Identity;

public static class IdentityUserEndpoints
{
Expand All @@ -25,7 +25,7 @@ private static async Task<IResult> SignInAsync(
{
new Claim("UserID", user.Id.ToString())
}),
Expires = DateTime.UtcNow.AddMinutes(15),
Expires = DateTime.UtcNow.AddMinutes(30),
SigningCredentials = new SigningCredentials(
signInKey,
SecurityAlgorithms.HmacSha256Signature
Expand Down

0 comments on commit 587fbfe

Please sign in to comment.