Vandan
Vandan
CC#
Created by Vandan on 3/24/2025 in #help
Cookies and JWT for Authentication
Thank you
6 replies
CC#
Created by Vandan on 3/24/2025 in #help
Cookies and JWT for Authentication
var cookieOptions = new CookieOptions { HttpOnly = true, Secure = true, // Set to false if testing locally SameSite = SameSiteMode.None, Expires = DateTime.UtcNow.AddHours(1) }; Response.Cookies.Append("accessAuthToken", accessToken, cookieOptions); Response.Cookies.Append("refreshAuthToken", refreshToken, cookieOptions); I used this in Controller
6 replies