Skip to content

Commit

Permalink
Merge pull request #75 from theImmortalCoders/dev
Browse files Browse the repository at this point in the history
fix: #dev refresh token expiry time fix
  • Loading branch information
marcinbator authored Jan 22, 2025
2 parents 6060687 + a18d6a2 commit db26335
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 db26335

Please sign in to comment.