Skip to content

adjust to new cookie scheme #7946

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

maxammann
Copy link
Contributor

This adds support for different dev and prod cookie as well as supporting two names for prod cookies

@maxammann maxammann requested a review from a team as a code owner July 31, 2025 12:52
Copy link

vercel bot commented Jul 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2025 1:20pm

@maxammann maxammann marked this pull request as draft July 31, 2025 12:52
@@ -70,6 +70,7 @@ export const KCL_DEFAULT_COLOR = `#3c73ff`
export const SETTINGS_FILE_NAME = 'settings.toml'
export const PROJECT_SETTINGS_FILE_NAME = 'project.toml'
export const COOKIE_NAME = '__Secure-next-auth.session-token'
export const COOKIE_NAME_DEV = '__Secure-session-token-dev'
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is just a draft, but I don't want to see a literal "dev" propagate any further in this codebase. The term is far too overloaded. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

would preview work? this is mostly targeting api.dev.zoo.dev so not sure what to call it 😓

Copy link
Contributor

@jacebrowning jacebrowning Jul 31, 2025

Choose a reason for hiding this comment

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

I think we want to include the domain of the environment in the cookie name per our discussion on Slack, so something like __secure-session-token-dev.zoo.dev.

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