get token fonctionnel

This commit is contained in:
2023-10-12 23:15:26 +02:00
parent 08758aa12f
commit e8d2670024
3 changed files with 8 additions and 7 deletions

View File

@@ -12,4 +12,4 @@ async def read_users():
@router.get("/users/me", response_model=users.User)
async def read_users_me(current_user: Annotated[users.User, Depends(get_current_active_user)]):
return [{"item_id": "Foo", "owner": current_user.username}]
return current_user