Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of the OAuth Token #18

Open
liquidnya opened this issue Jun 6, 2022 · 1 comment
Open

Improve handling of the OAuth Token #18

liquidnya opened this issue Jun 6, 2022 · 1 comment

Comments

@liquidnya
Copy link

Change the name of the password setting in settings.js and documentation to oauthToken or similar to make it more clear that the password of the bot account should not be supplied, but change the code to access the password setting as a fallback for backwards compatibility.
Additionally introduce the option to pass the oauth token via an environment variable (e.g. OAUTH_TOKEN), so that the token does not have to be inside the settings.js and make this the recommended way of setting the token, but still keep the option to set it in settings.js too (for simplicity and also for backwards compatibility).
And then also introduce .env files support, such that the OAUTH_TOKEN environment variable can be set in this file and this file should be added in .gitignore.

@liquidnya
Copy link
Author

All configuration could be set with environment variables or a mix of the json and environment variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant