Set a cookie from subdomain to all subdomains
I’m working on a NextJS project where I have multiple apps on separate subdomains. My goal is to login in one app and automatically signed in at every other. We’re using nookies as cookie handler, creating a cookie with a JWT token payload received from an API. I thought if I set the cookie domain manually then it’s going to set the cookie on the main domain but it did not happen.