Skip to content

Commit

Permalink
fix(core): Fix regression in cookie middleware when no name provided
Browse files Browse the repository at this point in the history
Relates to #2880
  • Loading branch information
michaelbromley committed Jun 10, 2024
1 parent 090ff9b commit fd729fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export function configureSessionCookies(

// If the Admin API and Shop API should have the same cookie name
// Else, the specific cookie middlewares are handled in the 'AppModule#configure' method
if (typeof cookieOptions?.name === 'string') {
if (typeof cookieOptions?.name === 'string' || cookieOptions?.name === undefined) {
app.use(
cookieSession({
...cookieOptions,
Expand Down

0 comments on commit fd729fd

Please sign in to comment.