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

[Unticketed] fix auth bug - allow non ssl cookies in non-prod #3507

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

doug-s-nava
Copy link
Collaborator

Summary

Unticketed

Time to review: 3 mins

Changes proposed

  • Only set the "secure" parameter on the session cookie to true in prod for now, as our lower environments are not set up with SSL yet
  • Also adds some logging for future debugging

Context for reviewers

Test steps

  1. deploy to DEV if necessary
  2. log in
  3. VERIFY: logged in header state is reflected after successful login

Additional information

It's pretty clear we need better logging on the NextJS app, creating tickets to deal with that now.

@@ -6,7 +6,7 @@
"node": ">=22.13.0"
},
"scripts": {
"all-checks": "npm run lint && npm run ts:check && npm run test && npm run build",
"all-checks": "npm run lint && npm run ts:check && npm run test && npm run build -- --no-lint",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

incidental, but speeds things up a bit

Copy link
Collaborator

@acouch acouch left a comment

Choose a reason for hiding this comment

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

🚀

@doug-s-nava doug-s-nava merged commit 67d5df0 into main Jan 13, 2025
8 checks passed
@doug-s-nava doug-s-nava deleted the dev-auth-debug branch January 13, 2025 21:47
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

Successfully merging this pull request may close these issues.

2 participants