Next auth session cookie is not set after successful login

As you can see the server send back a set-cookie header, but after redirecting to home session is still null and I can't find the cookie in the application tab.
any idea about what might happened?
image.png
Was this page helpful?