'Safe to store API Credentials (access tokens, refresh tokens, api keys) on Local Machine in JSON file?

I have some credentials (access tokens, refresh tokens and the like) that I obtain from facebook. I do not want to make my app public for now and am thinking of just storing these credentials on my local machine, in a JSON somewhere that I'll add to a .gitignore

Is there anything problematic about this that I should be worried about?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source