dify/web/app
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
..
(commonLayout) refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
(humanInputLayout)/form/[token] refactor(dify-ui): finish primitive migration from web/base/ui to @langgenius/dify-ui (#35349) 2026-04-17 08:46:11 +00:00
(shareLayout) refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
account refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
activate refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
components refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
device fix(web/device): bounce to authorize_account after post-login return 2026-04-28 20:42:06 -07:00
education-apply refactor(dify-ui): finish primitive migration from web/base/ui to @langgenius/dify-ui (#35349) 2026-04-17 08:46:11 +00:00
forgot-password refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
init refactor(dify-ui): finish primitive migration from web/base/ui to @langgenius/dify-ui (#35349) 2026-04-17 08:46:11 +00:00
install refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
oauth-callback feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
reset-password refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
signin feat(api,web): OAuth 2.0 device flow + bearer auth (RFC 8628) 2026-04-26 20:06:43 -07:00
signup refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
styles feat(ui): scaffold @langgenius/dify-ui and migrate design tokens (#35256) 2026-04-15 13:11:20 +00:00
layout.tsx refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
loading.tsx refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394) 2026-04-20 02:52:08 +00:00
page.tsx refactor: route next/link through compat re-export (#33632) 2026-03-18 12:14:59 +08:00
routePrefixHandle.tsx refactor: route next/navigation through compat re-export (#33636) 2026-03-18 12:57:03 +08:00