-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
[legacy-framework] Use cookie prefix from config.blitz.js
instead of package.json name
field
#1976
Conversation
9343656
to
c11ac06
Compare
Refs: #1972, #1957
43a000a
to
9c75f8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, great job!
Main change is use name
instead of type
because we might need type
for something else later that actually indicates type.
Then please open a PR to the docs repo to update the docs for this change
Hey @piotrski, are you able to finish this up? |
Sure. Sorry I had a lot of stuff on my mid and was sure it was already done. |
@piotrski ok no problem :) I should have said something earlier |
@mabadir can you resolve the merge conflicts too? |
Yes, next on my list. |
@mabadir and |
@mabadir and then we also need a PR to the docs repo to update docs for this change |
config.blitz.js
instead of package.json name
fieldconfig.blitz.js
instead of package.json name
field
Closes: blitz-js/legacy-framework#329, blitz-js/legacy-framework#335
What are the changes and their implications?
Adds new
cookiePrefix
property tosessionMiddleware
config.module.exports = { middleware: [ sessionMiddleware({ + cookiePrefix: 'cookie', isAuthorized: simpleRolesIsAuthorized, }), ], }
Instead of using the name from your
package.json
as a session cookie prefix, it uses thecookiePrefix
fromblitz.config.js
Should we add information on this somewhere in the docs?
Checklist