Skip to content

Commit

Permalink
removed the profile picture from the google login logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Feb 25, 2025
1 parent 7594480 commit 20e7d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth-service/middleware/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,14 @@ const useGoogleStrategy = (tenant, req, res, next) =>
cb(null, user);
//return next();
} else {
// profilePicture: profile._json.picture,
const responseFromRegisterUser = await UserModel(tenant).register(
{
google_id: profile._json.sub,
firstName: profile._json.given_name,
lastName: profile._json.family_name,
email: profile._json.email,
userName: profile._json.email,
profilePicture: profile._json.picture,
website: profile._json.hd,
password: accessCodeGenerator.generate(
constants.RANDOM_PASSWORD_CONFIGURATION(constants.TOKEN_LENGTH)
Expand Down

0 comments on commit 20e7d5b

Please sign in to comment.