mongodb-labs / full-stack-fastapi-mongodb

Full stack, modern web application generator. Using FastAPI, MongoDB as database, Docker, automatic HTTPS and more.
MIT License
498 stars 86 forks source link

Bug Fix for Token Update Issue and Addition of Static Methods #27

Closed Osc44r closed 8 months ago

Osc44r commented 8 months ago

This pull request addresses a bug in the get_refresh_user dependency where tokens were not being updated due to outdated user data. The issue has been resolved by ensuring the user data is up-to-date before attempting to update the token. Additionally, this pull request introduces the use of static methods in areas where they were needed.