Skip to content

Commit

Permalink
fix: #dev refresh token expiry time fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbator committed Jan 22, 2025
1 parent 0c18a77 commit a18d6a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rag-2-backend/Infrastructure/Module/Auth/AuthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public async Task<string> Login([FromBody] [Required] UserLoginRequest loginRequ
HttpContext.Response.Cookies.Append("refreshToken", response.RefreshToken,
new CookieOptions
{
Expires = DateTimeOffset.UtcNow.AddDays(
double.Parse(config["RefreshToken:ExpireDays"] ?? "30")),
Expires = DateTimeOffset.UtcNow.AddDays(refreshTokenExpiryDays),
HttpOnly = true,
IsEssential = true,
Secure = false
Expand Down

0 comments on commit a18d6a2

Please sign in to comment.