How to implement user_loader callback in Flask-Login
You will need to load the user object from the DB upon every request. The strongest reason for that requirement is that Flask-Login will check the authentication token every time to ensure its continuing validity. The calculation of this token may require parameters stored on the user object. For example, suppose a user has two … Read more