nodebb-plugin-session-sharing 8.0.4 → 8.0.5

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
@@ -137,7 +137,7 @@ plugin.getUser = async (remoteId) => {
137
137
  };
138
138
 
139
139
  plugin.process = async (token) => {
140
- const payload = await jwt.verify(token, plugin.settings.secret);
140
+ const payload = await jwt.verify(token, plugin.settings.secret, { algorithms: ['HS256'] });
141
141
  const userData = await plugin.normalizePayload(payload);
142
142
  const [uid, isNewUser] = await plugin.findOrCreateUser(userData);
143
143
  await plugin.updateUserProfile(uid, userData, isNewUser);