chore: added logic to create and add google accoun to pre-existing user accounts

This commit is contained in:
Balu Babu
2023-01-13 01:48:25 +05:30
parent 5fe934110e
commit 1f581e7b51

View File

@@ -23,7 +23,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy) {
const user = await this.usersService.findUserByEmail(
profile.emails[0].value,
);
console.log('user log', user);
if (O.isNone(user)) {
const createdUser = await this.usersService.createUserSSO(