Commit 371445c
feat(account): migrate user-settings to better-auth SDK + add missing features
- Extend @objectstack/client SDK with typed wrappers for all better-auth
endpoints: user management, sessions, 2FA, linked accounts, organization
members/invitations/teams.
- Enable teams plugin on better-auth organization config.
- Rewrite all account portal pages onto the SDK (profile, security,
sessions, two-factor, setup, verify-email, accept-invitation).
- Rewrite useOrganizationMembers hooks to drop direct sys_invitation
data-API calls; add useOrganizationInvitations, useMyInvitations.
- Add new pages: /account/invitations, /account/linked-accounts,
/organizations/$orgId/teams.
- Upgrade members page: inline role edit, bulk invite, leave org,
copy invite link, resend invitation.
- Upgrade setup page: invite teammates step with batch invitations.
- Upgrade two-factor page: backup codes panel.
- Update sidebar navigation and routeTree.gen.ts for new routes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 033923f commit 371445c
18 files changed
Lines changed: 2346 additions & 414 deletions
File tree
- apps/account/src
- components
- hooks
- routes
- examples/app-crm
- packages
- client/src
- plugins/plugin-auth/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
154 | 161 | | |
155 | 162 | | |
156 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
157 | 176 | | |
158 | 177 | | |
159 | 178 | | |
| |||
0 commit comments