-
Notifications
You must be signed in to change notification settings - Fork 290
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
yarn install shouldn't require setting cookies.keys #444
Comments
The workaround is to add a temporary value for the cookie during build but unsure if that might have unintended security consequences. This is the additional step I added in the build phase of the docker image:
I'm afraid that somehow this secret might persist somewhere in the docker image? For context the reason this works for me is due to initAuth.js looking like this:
|
@samos123 Had this same problem. I got around it by copying my env into the working dir
I think yours would be closer to this:
(run this command AFTER) |
This workaround is not working for me. Am not sure if there is any issue with my code. Also is there any other workaround?
|
Closed in #546. |
Describe the bug
I do a
yarn install
as part of my Dockerfile image building steps and cookies.keys seem to be required.Error observed:
Versions
next-firebase-auth
version:Firebase JS SDK: 8
Next.js: 0.14.3-alpha.0
Expected behavior
yarn install
to not require cookies.keysFull Dockerfile:
The text was updated successfully, but these errors were encountered: