Closed jonra1993 closed 1 year ago
Using client as Depends is not an option explicitly right now.
Creating a client is no longer required inside an event loop or supported after an FastAPI app has started due to changes in latest releases of FastAPI. See the latest example in docs and readme for latest usage. If you referenced the medium post, I still need to update that.
Thanks for the information @codemation
Thanks in advance for this tool, it is something I was looking for some time age. I was trying to initialize EasyAuthClient on new fastapi lifespan like this
and I get this message error
Do you have any idea how to run EasyAuthClient in lifespan also there is a way to use client as depends?