Try [fief](https://docs.fief.dev/integrate/python/fastapi/), there is a docker and a JS library.
Try fief, there is a docker and a JS library.