Service-Hub
Service-Hub copied to clipboard
Consider implementation of user authentication with authentication middleware
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.