refac: use dependencies to verify token
- feat: added new util to get the current user when needed. Middleware was adding authentication logic to all the routes. let's revisit if we can move the non-auth endpoints to a separate route. - refac: update the routes to use new helpers for verification and retrieving user - chore: added black for local formatting of py code
This commit is contained in:
1 parent
a01b112f7f
commit
bdd153d8f5
10 files changed
+167
-251
No files matched your search
@@ -18,3 +18,5 @@ bcrypt
|
||||
|
||||
PyJWT
|
||||
pyjwt[crypto]
|
||||
|
||||
black
|
||||
Reference in new issue
Block a user