diff --git a/HopFrame.Api/Controller/SecurityController.cs b/HopFrame.Api/Controller/SecurityController.cs index 022db42..fe6ea8e 100644 --- a/HopFrame.Api/Controller/SecurityController.cs +++ b/HopFrame.Api/Controller/SecurityController.cs @@ -45,6 +45,11 @@ public class SecurityController(TDbContext context, IUserService use HttpOnly = true, Secure = true }); + HttpContext.Response.Cookies.Append(ITokenContext.AccessTokenType, accessToken.Token, new CookieOptions { + MaxAge = HopFrameAuthentication.AccessTokenTime, + HttpOnly = true, + Secure = true + }); await context.Tokens.AddRangeAsync(refreshToken, accessToken); await context.SaveChangesAsync();