From 772d027ee02fd71775dd1cc0b937222aa568363c Mon Sep 17 00:00:00 2001 From: prostgles Date: Mon, 25 Nov 2024 15:40:39 +0200 Subject: [PATCH] fix auth session --- lib/Auth/setAuthProviders.ts | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- tests/server/package-lock.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Auth/setAuthProviders.ts b/lib/Auth/setAuthProviders.ts index 1a65641d..321f26e6 100644 --- a/lib/Auth/setAuthProviders.ts +++ b/lib/Auth/setAuthProviders.ts @@ -86,10 +86,10 @@ export function setAuthProviders (this: AuthHandler, { registrations, app }: Req ); app.get(callbackPath, - passport.authenticate(providerName, { failureRedirect: '/' }), + passport.authenticate(providerName, { session: false, failureRedirect: "/login" }), (req, res) => { // Successful authentication, redirect to main page - res.redirect('/'); + res.redirect("/"); } ); }); diff --git a/package-lock.json b/package-lock.json index 010f00e5..84667eef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "prostgles-server", - "version": "4.2.143", + "version": "4.2.144", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "prostgles-server", - "version": "4.2.143", + "version": "4.2.144", "license": "MIT", "dependencies": { "body-parser": "^1.20.3", diff --git a/package.json b/package.json index be5cb46d..989fc1a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prostgles-server", - "version": "4.2.143", + "version": "4.2.144", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/tests/server/package-lock.json b/tests/server/package-lock.json index d86021cb..4031a0ea 100644 --- a/tests/server/package-lock.json +++ b/tests/server/package-lock.json @@ -21,7 +21,7 @@ }, "../..": { "name": "prostgles-server", - "version": "4.2.143", + "version": "4.2.144", "license": "MIT", "dependencies": { "body-parser": "^1.20.3",