#Understanding and Managing `PAYLOAD_SECRET` Safety
6 messages · Page 1 of 1 (latest)
Original message from @thin sun - Moved from #general message
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
Hey @thin sun,
The PAYLOAD_SECRET env var is used in a few places around Payload, namely the auth stuff. It's used for generating apiKeys for example. So, say you regenerated it, your existing apiKeys would fail and you would need to regenerate those. It's also used for things like tokens iirc. You can see it in practice in the source code in the /auth folder of the Payload package. Just be mindful that some things may not work as expected if you use two different ones in build vs live, or you rotate them.
Thanks so much for clarifying that, much appreciated 
My pleasure, truly