Authenticate User on multiple localhost Next.js apps (with different ports)

Hello together,

I would like to be able to authenticate a user over different locally running Next.js apps.

Currently, I have my “login” application running on localhost:3002 and my other Next.js app running on localhost:3003.

When trying to use useUser() on the Port 3003 app, I’m not able to get any informations (undefined for user).

How can I authenticate a user over multiple locally hosted apps?
As far as I can tell, the appSession cookie is set for the localhost domain.

Am I missing something?

Greetings,
Julian