From 0263a8364aeae24511904abc2c4a916bb12824de Mon Sep 17 00:00:00 2001 From: kamadi2000 Date: Wed, 1 Nov 2023 14:40:28 +0530 Subject: [PATCH] debug --- backend/src/controllers/authController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/authController.js b/backend/src/controllers/authController.js index c86b45f..93e4065 100644 --- a/backend/src/controllers/authController.js +++ b/backend/src/controllers/authController.js @@ -4,7 +4,6 @@ const jwt = require("jsonwebtoken"); const { GenerateRandomPassword } = require("../utils/string"); const emailModule = require("../utils/email"); const { OTPGenerator } = require("../utils/otpgenerator"); -const { default: axios } = require("axios"); @@ -148,7 +147,9 @@ const googleLoginBase = async (req, res, isWeb) => { Authorization: `Bearer ${token}`, }, } - ) + ).catch(err => { + console.log(err) + }) console.log(googleResponse.data); const { email, name } = googleResponse.data; //see if there is an user with that email already