Session Management with FastAPI_user #1385
Unanswered
Serjuvenal
asked this question in
Q&A
Replies: 1 comment
-
If you are following the full-example. https://fastapi-users.github.io/fastapi-users/latest/configuration/full-example/#sqlalchemy Then you can use the same Async Session with https://github.com/fastapi-users/fastapi-users/blob/master/examples/sqlalchemy/app/db.py#L28 @router.get('/foo')
async def foo(session: AsyncSession = Depends(get_async_session)):
... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm writing my first API, in Python, with FastAPI. I'm totally a newbie.
So,
This API needs User Authentication, after this happens, these authenticated users should be able to manipulate other entities in the DB through protected Endpoints and crud functions. Here is where I don't know how to use the same Assync Session from FastAPI_users.
Beta Was this translation helpful? Give feedback.
All reactions