Skip to content

Commit

Permalink
Merge pull request #4495 from airqo-platform/fix-google-auth-user-3
Browse files Browse the repository at this point in the history
fix the gateway timeout for Google login
  • Loading branch information
Baalmart authored Feb 25, 2025
2 parents 794304a + 69aea2b commit 694451d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth-service/middleware/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ const useGoogleStrategy = (tenant, req, res, next) =>
}
);
cb(null, user);
//return next();
return next();
} else {
// profilePicture: profile._json.picture,
const responseFromRegisterUser = await UserModel(tenant).register(
Expand Down Expand Up @@ -518,7 +518,7 @@ const useGoogleStrategy = (tenant, req, res, next) =>
}
cb(null, user);

// return next();
return next();
}
}
} catch (error) {
Expand Down

0 comments on commit 694451d

Please sign in to comment.