nodebb-plugin-session-sharing 7.1.1 → 7.1.2

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.
Files changed (2) hide show
  1. package/library.js +1 -1
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -587,7 +587,7 @@ plugin.appendTemplate = async (data) => {
587
587
  };
588
588
 
589
589
  plugin.saveReverseToken = async ({ req, userData: data }) => {
590
- if (!plugin.ready || plugin.settings.reverseToken !== 'on') {
590
+ if (!plugin.ready || !data || plugin.settings.reverseToken !== 'on') {
591
591
  return; // no reverse token if secret not set
592
592
  }
593
593
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-session-sharing",
3
- "version": "7.1.1",
3
+ "version": "7.1.2",
4
4
  "description": "Allows login sessions from your app to persist in NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {