You might have facing this issue if you were logged into a different Catalyst application previously and then tried to access another one, while the login cookie from the earlier project persisted in your localhost. To resolve this, kindly testing your application in catalyst serve
within an incognito window. This will prevent any cookie conflicts from previous sessions.