Simplified My Profile authentication flows, fixed some UX issues with reauth cancelled/accepted leading to incorrect states.

This commit is contained in:
2026-02-18 19:04:02 +00:00
parent 880ced3b8c
commit f26ac8f33b
5 changed files with 29 additions and 109 deletions
+6 -1
View File
@@ -214,7 +214,12 @@ async def api_user_info(
)
ctx = db.data().session_ctx(auth, request.headers.get("host"))
if not ctx:
raise HTTPException(401, "Session expired")
raise authz.AuthException(
status_code=401,
detail="Session expired",
mode="login",
clear_session=True,
)
return MsgspecResponse(
await userinfo.build_user_info(