Commit b9e3a1b
authored
Add email+password recovery mode with lookup-key gating (#13897)
<img width="534" height="649" alt="image"
src="https://github.com/user-attachments/assets/722fab95-a38d-4bb4-882a-2f3bb9afec12"
/>
## Summary
- support mode=emailpassword recovery links by prompting for new email +
password
- gate auto-open reset flow on required params:
- mode=password (or warning=RECOVERY_DO_NOT_SHARE) requires email
- mode=emailpassword requires lookupKey
- pass lookupKey through reset flow as oldLookupKey
- defer browser-push confirmation until password-reset flow is finished
(so push modal no longer overlays the recovery modal)
- preserve backwards compatibility for legacy localStorage payloads
- fix password-reset saga so success is not dispatched after a failed
reset attempt
## Validation
- cd packages/web && npx eslint
src/components/password-reset/PasswordResetModal.tsx
src/components/password-reset/store/actions.ts
src/components/password-reset/store/sagas.tsx
src/common/store/pages/signon/sagas.ts
- cd packages/common && npx eslint src/services/auth/authService.ts
- cd packages/web && npm run typecheck (fails due existing unrelated
error in src/pages/oauth-login-page/hooks.ts(50,21): TS18047)1 parent 768e241 commit b9e3a1b
7 files changed
Lines changed: 300 additions & 44 deletions
File tree
- packages
- common/src/services/auth
- web
- src
- common/store/pages/signon
- components/password-reset
- store
- store/account
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| 94 | + | |
91 | 95 | | |
92 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
88 | 123 | | |
89 | 124 | | |
90 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
| |||
958 | 964 | | |
959 | 965 | | |
960 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
961 | 970 | | |
962 | 971 | | |
963 | 972 | | |
| |||
0 commit comments