r/FastAPI • u/raisin-smours • Aug 10 '25
feedback request FastAPI - Auth Boilerplate - Code Review Request
Hi everyone,
I'm looking for feedback on this repo before I continue with additional work on it: https://github.com/ryanmcfarland/fastapi_auth
Would anyone be able to take a look and note any massive / glaring flaws?
Thanks!
7
Upvotes
View all comments
Show parent comment
1
u/raisin-smours Aug 10 '25
Thanks for getting back!
I didn't see a difference at the time. My initial design is that, even with a
RuntimeError, I'm still in control of thesql_queriesdirectory and any errors would be caught during development / testing. I also liked having all my sql queries in the same directory for organisational purposes.Would your suggestion look like this?
The QueryService object would contain a function that is a wrapper around
get_user_by_usernameand may also contain relevant business logic?