mirror of
https://github.com/langgenius/dify.git
synced 2026-05-11 14:58:23 +08:00
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. |
||
|---|---|---|
| .. | ||
| components | ||
| utils | ||
| page.tsx | ||