nodebb-plugin-session-sharing 7.2.1 → 7.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js CHANGED
@@ -64,7 +64,7 @@ plugin.defaults = Object.freeze({ ...plugin.settings });
64
64
  plugin.init = async (params) => {
65
65
  const { router } = params;
66
66
 
67
- routeHelpers.setupAdminPageRoute(router, '/plugins/session-sharing', controllers.renderAdminPage);
67
+ routeHelpers.setupAdminPageRoute(router, '/admin/plugins/session-sharing', controllers.renderAdminPage);
68
68
 
69
69
  router.get('/api/session-sharing/lookup', controllers.retrieveUser);
70
70
  router.post('/api/session-sharing/user', controllers.process);
@@ -498,14 +498,12 @@ plugin.cleanup = async (data) => {
498
498
  winston.verbose('[session-sharing] Clearing cookie');
499
499
  data.res.clearCookie(plugin.settings.cookieName, {
500
500
  domain: plugin.settings.cookieDomain,
501
- expires: new Date(),
502
501
  path: '/',
503
502
  });
504
503
  }
505
504
 
506
505
  data.res.clearCookie('nbb_token', {
507
506
  domain: plugin.settings.cookieDomain,
508
- expires: new Date(),
509
507
  path: '/',
510
508
  });
511
509