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

chore: add cookie secret env var #755

Closed

Conversation

Aditya-PS-05
Copy link

closes #690

Copy link

linux-foundation-easycla bot commented Oct 23, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 983ad04
🔍 Latest deploy log https://app.netlify.com/sites/endearing-brigadeiros-63f9d0/deploys/671a6d8589ca510008f9e46e

@Aditya-PS-05 Aditya-PS-05 changed the title adding cookie secret env var chore: add cookie secret env var Oct 23, 2024
if (_userSettings && _userSettings.cookieSecret) {
_cookieSecret = _userSettings.cookieSecret;
if (!_cookieSecret) {
throw new Error('COOKIE_SECRET is not defined in the environment variables.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this never trigger because of the fallback to 'cookie secret'?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sorry about that, I need to correct it.

src/plugin.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any non-whitespace changes in this file?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess no.

@Aditya-PS-05
Copy link
Author

@rgmz
Please review the pr as soon as possible please.

@JamieSlome
Copy link
Member

@Aditya-PS-05 - it looks like you have a prettier or linter that doesn't align with the standard of the project? Are you able to revert non-related changes so the PR includes changes only relevant to your suggested improvement? Massively appreciate your PR and effort ❤️

@Aditya-PS-05 Aditya-PS-05 closed this by deleting the head repository Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

making COOKIE_SECRET an env var
3 participants