API Key revoked at mailchimp. #51672
-
Select Topic AreaQuestion BodyHi there. I recently hosted my web app on cyclic.sh but there is an issue towards the end, for the "re-enabling" of my API key which has of course been revoked as the files were posted on a public repository here on GitHub. How do I exactly re-enable it, as there doesn't seem to be any option to do so. I feel I need to generate another API key, but then everything will start breaking from there on. Any help is highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
same problem. Was doing a course, which suggested to upload on Heroku, which since is no longer free, i tried uploading at Cyclic, and now i saw the API key being revoked. |
Beta Was this translation helpful? Give feedback.
-
I was facing same issue yesterday, used a new API key in my repo and it worked but got revoked sometime later. Why this is happening is because your API key is meant to be private as anyone who access to API key can actually do some damage. So the best practice is to create a .env file where you store your API key and other sensitive data. You can then request for this data using process.env.(whatever name you used to store your API key) Note that you have to install the dotenv package and require in your code. Create a .gitignore file and add the .env file to it. What this does is that when you push your files to your repo, it doesn't include the .env file therefore no one has access to it. |
Beta Was this translation helpful? Give feedback.
same problem. Was doing a course, which suggested to upload on Heroku, which since is no longer free, i tried uploading at Cyclic, and now i saw the API key being revoked.