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

Load premium token from environment variables #6893

Open
nickchomey opened this issue Feb 21, 2025 · 2 comments
Open

Load premium token from environment variables #6893

nickchomey opened this issue Feb 21, 2025 · 2 comments

Comments

@nickchomey
Copy link
Contributor

I'd like to store the premium token in an encrypted secrets store, which then injects the token into the actual environment variables. Would it be possible for the installer.js to check there first, then check .env then package.json? It would make my life easier, and your tokens more secure!

@pubkey
Copy link
Owner

pubkey commented Feb 21, 2025

Can you make an example of what the installer should fetch in javascript?

@nickchomey
Copy link
Contributor Author

nickchomey commented Feb 21, 2025

It should just check the environment for the variable. Something like this.

const accessToken= process.env.RXDB_PREMIUM;

If accessToken, carry on. If not, check .env.

Is there an unminified version of installer.js somewhere? I'd be happy to make the change there and test it.

(I'm on my phone right now)

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

2 participants