# v2.3.0 release notes
# Introduction
In this release, we:
- fixed a bug that keeps the user session active after logging out,
- added an option to customize
cookie_options
by modifyingmiddleware.config.js
.
# Migration guide
To customize cookie_options, simply add this information to middleware.config.js like this:
# middleware.config.js
module.exports = {
integrations: {
bigcommerce: {
location: '@vsf-enterprise/bigcommerce-api/server',
configuration: {
...
+ cookie_options: {
+ 'customer-data': {
+ httpOnly: true,
+ secure: true,
+ sameSite: 'strict'
+ }
+ },
// @deprecated
secureCookies: process.env.NODE_ENV === 'production'
}
}
}
};
The only available cookie to customize is customer-data
and its options by default are set to:
{
httpOnly: true,
secure: true,
sameSite: 'strict'
}