get token fonctionnel
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user