#Recover PAYLOAD_SECRET_KEY?

1 messages · Page 1 of 1 (latest)

still cipher
#

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?

still cipher
#

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. 👍

Payload CMS

Payload is a headless CMS and application framework built with TypeScript, Node.js, React and MongoDB