nodebb-plugin-session-sharing 5.1.6 → 5.1.9
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 +2 -2
- package/package.json +3 -3
- package/plugin.json +1 -1
package/library.js
CHANGED
|
@@ -421,7 +421,7 @@ plugin.addMiddleware = async function ({ req, res }) {
|
|
|
421
421
|
winston.verbose('[session-sharing] Processing login for uid ' + uid + ', path ' + req.originalUrl);
|
|
422
422
|
req.uid = uid;
|
|
423
423
|
|
|
424
|
-
if (plugin.settings.behaviour === 'revalidate') {
|
|
424
|
+
if (plugin.settings.behaviour === 'revalidate' || plugin.settings.behaviour === 'update') {
|
|
425
425
|
res.locals.reroll = false; // disable session rerolling in core
|
|
426
426
|
}
|
|
427
427
|
|
|
@@ -596,7 +596,7 @@ plugin.saveReverseToken = async ({ req, userData: data }) => {
|
|
|
596
596
|
|
|
597
597
|
res.cookie('nbb_token', token, {
|
|
598
598
|
maxAge: meta.getSessionTTLSeconds() * 1000,
|
|
599
|
-
httpOnly:
|
|
599
|
+
httpOnly: true,
|
|
600
600
|
domain: plugin.settings.cookieDomain,
|
|
601
601
|
});
|
|
602
602
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-session-sharing",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.9",
|
|
4
4
|
"description": "Allows login sessions from your app to persist in NodeBB",
|
|
5
5
|
"main": "library.js",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"readmeFilename": "README.md",
|
|
23
23
|
"nbbpm": {
|
|
24
|
-
"compatibility": "^1.17.2"
|
|
24
|
+
"compatibility": "^1.17.2 || ^2.0.0"
|
|
25
25
|
},
|
|
26
26
|
"husky": {
|
|
27
27
|
"hooks": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@commitlint/cli": "^9.1.2",
|
|
40
|
-
"async": "^
|
|
40
|
+
"async": "^3",
|
|
41
41
|
"eslint": "^7.7.0",
|
|
42
42
|
"jsonwebtoken": "^8.5.1",
|
|
43
43
|
"lint-staged": "^10.0.9",
|
package/plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "nodebb-plugin-session-sharing",
|
|
3
|
-
"url": "https://github.com/
|
|
3
|
+
"url": "https://github.com/julianlam/nodebb-plugin-session-sharing",
|
|
4
4
|
"library": "./library.js",
|
|
5
5
|
"hooks": [
|
|
6
6
|
{ "hook": "response:router.page", "method": "addMiddleware" },
|