Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
violetaperezandrade committed May 31, 2024
1 parent 96a8001 commit 67c2e2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/service/Users.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ def delete_notification(self, user_id: int, notification_id: int):
self.user_repository.rollback()
raise e

def get_user_auth(self, user_data):
def get_user_auth(self, user_data): # pragma: no cover
token = user_data.get("token")
print(f"Token: {token}")
decoded_token = jwt.decode(token,
os.environ["JWT_SECRET"],
algorithms=["HS256"])
Expand Down Expand Up @@ -150,7 +149,6 @@ def login(self, auth_code: str):
jwt_token = jwt.encode(payload,
os.environ["JWT_SECRET"],
algorithm="HS256")
print(f"Token: {jwt_token}")
return user, jwt_token

def _get_access_token(self, authorization_code): # pragma: no cover
Expand Down

0 comments on commit 67c2e2a

Please sign in to comment.