Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Recover PAYLOAD_SECRET_KEY?

default discord avatar
tinoutilast year
1

So I deleted my .env file by mistake. 🤦‍♂️



Is there a way to recover the secret key somehow, or do I have to reinstall Payload with a fresh key and migrate my data over?



Oh actually I had misunderstood what the secret key was used for. After doing some more reading of the documentation (

https://payloadcms.com/docs/getting-started/installation#server

), sounds like it's only used to generate the user tokens (JWT).


So I assume that the only downside of changing the secret key would be invalidating current user tokens. 👍

  • default discord avatar
    allannnclast year
    So I assume that the only downside of changing the secret key would be invalidating current user tokens. 👍

    this is what i found too when i had to change payload_secret

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.