From 4d064edf5b62c801649cece4417448a5e0804c3c Mon Sep 17 00:00:00 2001 From: hichri-louay Date: Thu, 18 Jan 2024 16:41:38 +0100 Subject: [PATCH] add cb import in passeport strategy --- routes/login.routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/login.routes.js b/routes/login.routes.js index 857c11ad..2035ec06 100644 --- a/routes/login.routes.js +++ b/routes/login.routes.js @@ -591,7 +591,7 @@ passport.use( new GoogleStrategy( googleCredentials('auth/callback/google/connection'), async (req, accessToken, refreshToken, profile, cb) => { - googleAuthSignin(profile, cb) + googleAuthSignin(req,profile, cb) } ) )