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

feat(medusa): Include name in session options #3186

Merged
merged 5 commits into from Feb 6, 2023
Merged

feat(medusa): Include name in session options #3186

merged 5 commits into from Feb 6, 2023

Conversation

pevey
Copy link
Contributor

@pevey pevey commented Feb 6, 2023

feat(medusa): Expose session options #3162

Related Info: In express-session, 'name' is the option to be passed that determines the cookie name. It is a top-level option (meaning, NOT inside the cookie options)

  • Deleted cookieName from session options in express loader
  • Added name to session options in express loader pointing to config value if present or current default of 'connect.sid' if no config value present.
  • Added name?: string to SessionOptions global type interface

@pevey pevey requested a review from a team as a code owner February 6, 2023 17:15
@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2023

🦋 Changeset detected

Latest commit: 1e442f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@medusajs/medusa Patch
@medusajs/inventory Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@olivermrbl olivermrbl changed the title Feat/session configuration add 'name' option feat(medusa): Include name in session options Feb 6, 2023
Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @pevey. Just a minor todo to follow codebase convention for hardcoded strings :)

packages/medusa/src/loaders/express.ts Outdated Show resolved Hide resolved
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
@pevey
Copy link
Contributor Author

pevey commented Feb 6, 2023

Thanks for the contribution @pevey. Just a minor todo to follow codebase convention for hardcoded strings :)

Thanks, will note for future.

@olivermrbl
Copy link
Contributor

Thanks for getting back this quick 🚤

@olivermrbl olivermrbl merged commit 78650ea into medusajs:develop Feb 6, 2023
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.

None yet

2 participants