You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation of user authentication and authorization is not "elegant". We making user authorization in FastAPI dependency then authentication. Because of that we have duplicating JWT processing code base. Also, in case with access token, it leads to double DB queries to fetch same user.
The text was updated successfully, but these errors were encountered:
vadim-zabolotniy
changed the title
Consider variant of user authentication with authentication middleware
Consider implementation of user authentication with authentication middleware
Jan 3, 2023
Current implementation of user authentication and authorization is not "elegant". We making user authorization in FastAPI dependency then authentication. Because of that we have duplicating JWT processing code base. Also, in case with access token, it leads to double DB queries to fetch same user.
The text was updated successfully, but these errors were encountered: