Ali2206 commited on
Commit
08fd246
·
verified ·
1 Parent(s): d1dd9f1

Update api/routes/auth.py

Browse files
Files changed (1) hide show
  1. api/routes/auth.py +1 -1
api/routes/auth.py CHANGED
@@ -123,7 +123,6 @@ async def login(form_data: OAuth2PasswordRequestForm = Depends()):
123
 
124
  @router.get("/me")
125
  async def get_me(current_user: dict = Depends(get_current_user)):
126
- logger.info(f"Returning cached user: {current_user['email']}")
127
  return {
128
  "id": str(current_user.get('_id', '')),
129
  "email": current_user["email"],
@@ -134,5 +133,6 @@ async def get_me(current_user: dict = Depends(get_current_user)):
134
  "updated_at": current_user.get("updated_at")
135
  }
136
 
 
137
  # Export the router as 'auth' for api.__init__.py
138
  auth = router
 
123
 
124
  @router.get("/me")
125
  async def get_me(current_user: dict = Depends(get_current_user)):
 
126
  return {
127
  "id": str(current_user.get('_id', '')),
128
  "email": current_user["email"],
 
133
  "updated_at": current_user.get("updated_at")
134
  }
135
 
136
+
137
  # Export the router as 'auth' for api.__init__.py
138
  auth = router