cookies don't know what a port is. your app on localhost:3000 and the admin tool on localhost:4000 share one cookie jar, so the second login overwrites the first session. it smells exactly like an auth bug until you diff the jars. fix: distinct cookie names per app, or distinct hostnames. boring, permanent, free.