def METHOD_NAME(self, app, user_with_token):
    """Fetch a profile through the API for an authenticated user."""
    user, token = user_with_token
    headers = {"Authorization": f"Bearer {token.value}"}
    res = app.get("/api/profile", headers=headers)
    assert res.json["userid"] == user.userid