Skip to content

Commit

Permalink
Increase login expire from 4 to 12 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 20, 2024
1 parent bb5121a commit f4913e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/Services/PermissionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public string GetUserId(HttpContext request)
/// <summary> Creates a JWT token for the given user. </summary>
public async Task<User?> MakeJwt(User user)
{
const int hoursUntilExpires = 4;
const int hoursUntilExpires = 12;
var tokenHandler = new JwtSecurityTokenHandler();
var secretKey = Environment.GetEnvironmentVariable("COMBINE_JWT_SECRET_KEY")!;
var key = Encoding.ASCII.GetBytes(secretKey);
Expand Down

0 comments on commit f4913e0

Please sign in to comment.