I see in the official documentation present an example of working with flask. Auth0 Python API SDK Quickstarts: Authorization
As I switched from flask to FastAPI (inspired by flask but with many improvements) I have developed a lightweight lib for integrating with auth0. fastapi-auth0 · PyPI
Perhaps it could be added in the official docs as the recommended way to work with fastapi.