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

Base64 encoding not working? #363

Closed
sudhanshugaur4 opened this issue Jan 12, 2019 · 1 comment
Closed

Base64 encoding not working? #363

sudhanshugaur4 opened this issue Jan 12, 2019 · 1 comment

Comments

@sudhanshugaur4
Copy link

sudhanshugaur4 commented Jan 12, 2019

I am trying to use base64 encoding but I am getting key as undefined.

for e.g my actual string is

SECRET_KEY=hello1234

.env
U0VDUkVUX0tFWT1oZWxsbzEyMzQ=

process.env.SECRET_KEY// undefined

Can anyone please tell me is this a bug or I am doing something wrong?

@maxbeatty
Copy link
Contributor

dotenv will not decode the contents of your .env file

I'm assuming you are calling like this: dotenv.config({ encoding: 'base64' }). I've opened #366 to clarify the intended usage. Please reopen if this is not the case.

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