dify/web/app/device
GareArc b083c910b3
fix(web/device): bounce to authorize_account after post-login return
When an unauthenticated user submits a user_code, the chooser view
holds the typed code and redirects to /signin. After login, the page
re-mounts on /device with no URL params (already scrubbed on the
first render) and account loaded — but the existing useEffect path
only advanced when ssoVerified or urlUserCode was present.

Add an early branch: if view is chooser and account just loaded,
advance to authorize_account using the userCode stashed in view
state. Also widen the effect deps to view (not view.kind) so the
nested userCode reads stay current.
2026-04-28 20:42:06 -07:00
..
components feat(web): switch /device page to /openapi/v1 paths (Phase G.21) 2026-04-27 00:32:31 -07:00
utils feat(web): switch /device page to /openapi/v1 paths (Phase G.21) 2026-04-27 00:32:31 -07:00
page.tsx fix(web/device): bounce to authorize_account after post-login return 2026-04-28 20:42:06 -07:00