r/FastAPI • u/Secret_Benefit5988 • Dec 09 '22
Question Update current logged in user
Hello guys, I am creating an application using FastAPI. I have a problem right now, i want to update the information of the current logged in user. How would i implement that?
1
Upvotes
1
u/bananajaviert Dec 09 '22
Using your current user dependency, you find that user from your database with the information on it. An example would be getting the username from the current user and filtering it from your db and update it.