diff --git a/app/controller/Users.py b/app/controller/Users.py index 7502351..ea3cc86 100644 --- a/app/controller/Users.py +++ b/app/controller/Users.py @@ -23,6 +23,7 @@ def handle_create_user(self, user_data: dict): def handle_login(self, auth_code: str): user = self.users_service.login(auth_code) + print(user) return { "message": user, "status": status.HTTP_200_OK, diff --git a/app/service/Users.py b/app/service/Users.py index 5f78cc9..561ecb5 100644 --- a/app/service/Users.py +++ b/app/service/Users.py @@ -28,9 +28,11 @@ def login(self, auth_code: str): raise AuthenticationError("Authentication code is invalid") user_info = self._get_user_info(access_token) + print(user_info) user = self.user_repository.get_user_by_email(user_info["email"]) if user is None: + print("hola") user = self.user_repository.create_user(**user_info) return user