code: def setup_user_manager(app):
      
  
      from flask_user import SQLAlchemyAdapter
  
      from rio.models import User
  
      init = dict(
          db_adapter=SQLAlchemyAdapter(db, User),
      )
      user_manager.init_app(app, **init)
docs: Setup flask-user manager.