Unable to login locally after initial setup

default discord avatar
f12057
last month

After initializing a new Payload CMS Cloud app and copying the repository down, I'm unable to login locally.



1. Copied the MongoDB string from my account dashboard on Payload for MONGODB_URI in .env


2. Added Payload Secret from the project settings page on Payload as PAYLOAD_SECRET in .env


3. Run

yarn build

then

yarn dev

4. Try to login with login that works in Payload Cloud


5. Server logs AuthenticationError: The email or password provided is incorrect and I'm unable to login.



I searched the GitHub issues as well as discussions and couldn't find anything. I must be missing something simple in the docs as this is step 1 of getting up and running.



Thanks for your help!



Ok, I think I might have just got my wires crossed between logins for Payload and the actual CMS login, d'oh. I removed the user via mongo and recreated and it is resolved now.

    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!

    Star

    Connect with the Payload Community on Discord

    Discord

    online

    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.