Log in info safe on character.json file vs .env?
Just a quick question about the safety of inputting our login information for social media platforms on the files. Is it safe to input them on the character.json file under "secrets", or is it better to have them in the .env?
What if you are running more than one character? Is there a way to add 2 different login info for the same platform (e.g twitter, or discord) in the .env and have them be assigned to different characters.json?
I have same problems, I want to add Twitter accounts in the .env and assign them to different characters. now I have to solve this question by myself
I have same problems, I want to add Twitter accounts in the .env and assign them to different characters. now I have to solve this question by myself
Sure, you can add more variables for the additional characters in the .env and then reference them in the character file like so:
...
"secrets": {
"TWITTER_TOKEN": "${CHARACTER8_TWITTER_TOKEN}",
@ggindev thank you!
@ggindev Suggested the right way to handle this. In future versions we will have a secret manager too.