diff --git a/changemappers-backend/app.js b/changemappers-backend/app.js index 759cbca..c1c5ebe 100644 --- a/changemappers-backend/app.js +++ b/changemappers-backend/app.js @@ -6,7 +6,7 @@ var http = require("http"), methods = require("methods"), express = require("express"), bodyParser = require("body-parser"), - session = require("express-session"), + session = require("cookie-session"), cors = require("cors"), passport = require("passport"), errorhandler = require("errorhandler"), diff --git a/changemappers-backend/package-lock.json b/changemappers-backend/package-lock.json index 0d957d8..42632d7 100644 --- a/changemappers-backend/package-lock.json +++ b/changemappers-backend/package-lock.json @@ -693,11 +693,37 @@ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" }, + "cookie-session": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/cookie-session/-/cookie-session-1.4.0.tgz", + "integrity": "sha512-0hhwD+BUIwMXQraiZP/J7VP2YFzqo6g4WqZlWHtEHQ22t0MeZZrNBSCxC1zcaLAs8ApT3BzAKizx9gW/AP9vNA==", + "requires": { + "cookies": "0.8.0", + "debug": "2.6.9", + "on-headers": "~1.0.2" + } + }, "cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" }, + "cookies": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.8.0.tgz", + "integrity": "sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==", + "requires": { + "depd": "~2.0.0", + "keygrip": "~1.1.0" + }, + "dependencies": { + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + } + } + }, "copy-descriptor": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", @@ -1916,6 +1942,14 @@ "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.2.tgz", "integrity": "sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==" }, + "keygrip": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz", + "integrity": "sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==", + "requires": { + "tsscmp": "1.0.6" + } + }, "kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", @@ -3712,6 +3746,11 @@ "punycode": "^2.1.1" } }, + "tsscmp": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", + "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==" + }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", diff --git a/changemappers-backend/package.json b/changemappers-backend/package.json index 58c043d..c745f7d 100644 --- a/changemappers-backend/package.json +++ b/changemappers-backend/package.json @@ -18,6 +18,7 @@ "license": "ISC", "dependencies": { "body-parser": "^1.19.0", + "cookie-session": "^1.4.0", "cors": "2.7.1", "dotenv": "^8.2.0", "ejs": "2.4.1", diff --git a/changemappers-frontend/src/server.js b/changemappers-frontend/src/server.js index dc02c92..1a6d125 100644 --- a/changemappers-frontend/src/server.js +++ b/changemappers-frontend/src/server.js @@ -2,7 +2,7 @@ import sirv from "sirv"; import polka from "polka"; import compression from "compression"; import bodyParser from "body-parser"; -import session from "express-session"; +import session from "cookie-session"; import sessionFileStore from "session-file-store"; import * as sapper from "@sapper/server";