Multi domain auth state

Hi, i have a monorepo set up with /packages/auth (where better-auth server config has been set up). Two of my next js clients (/apps/web and /apps/partner) use that and they both have their auth-client set up.

Now, there is a link on web app (localhost:3001), that goes to partner app (localhost:3002).

I want to make that user auto login when he/she goes to that other app.

On production, the partner app will probably be hosted on a subdomain, so i ask the same question for production as well.
Was this page helpful?