Integrating with Flask-Login module