Skip to content

Commit

Permalink
chore: removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
berenteb committed Jan 21, 2024
1 parent 2c24eb3 commit 2695e5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions packages/backend/src/strategies/auth0.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ export class Auth0Strategy extends PassportStrategy(Strategy, 'auth0') {
async validate(accessToken: string) {
const profile = await this.fetchProfile(accessToken);
const user = await this.userService.getUserByAuthId(profile.sub);
console.log('user', user);
if (!user) {
const newUser = await this.userService.createUserForAuth0User(profile);
console.log('newUser', newUser);
return newUser;
return await this.userService.createUserForAuth0User(profile);
}
return user;
}
Expand Down
1 change: 0 additions & 1 deletion packages/backend/src/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class UsersService {
}

async createUserForAuth0User(auth0Profile: Auth0Profile): Promise<UserDocument> {
console.log(auth0Profile);
return this.userModel.create({
authId: auth0Profile.sub,
mail: auth0Profile.email,
Expand Down

3 comments on commit 2695e5d

@vercel
Copy link

@vercel vercel bot commented on 2695e5d Jan 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2695e5d Jan 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2695e5d Jan 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

indulasch-landing – ./packages/landing

indulasch.kir-dev.hu
indulasch-landing-git-main-kir-dev.vercel.app
indulasch-landing-kir-dev.vercel.app

Please sign in to comment.