diff --git a/src/ohmyapi/builtin/auth/routes.py b/src/ohmyapi/builtin/auth/routes.py index b944e05..3a9ea39 100644 --- a/src/ohmyapi/builtin/auth/routes.py +++ b/src/ohmyapi/builtin/auth/routes.py @@ -160,11 +160,5 @@ async def introspect(token: Dict = Depends(get_token)): @router.get("/me") async def me(user: User = Depends(get_current_user)): """Return the currently authenticated user.""" - return { - "email": user.email, - "username": user.username, - "is_admin": user.is_admin, - "is_staff": user.is_staff, - } - + return user