in backend/app.py [0:0]
def _build_auth_url(scopes=None, state=None):
return _build_msal_app().get_authorization_request_url(
scopes or [],
state=state or str(uuid.uuid4()),
redirect_uri=url_for("authorized", _external=True)
)