Refactor `UserInfo` service
jazzthief opened this issue · 0 comments
jazzthief commented
Refactor UserInfo
service to make use of a more robust and versatile data model. Primary areas of impovement:
- Leave
UserRepository
with just the db query methods and move any data manipulation logic toUserInfoService
- Add a straightforward mechanism for scope resolution
- Use a single pydantic model for user info as a DTO and response model for the endpoint
- Reduce the amount of dict manipulation