Commit b7fc11b
committed
fix(auth): run user sync in hooks immediately and fix auth methods path
- User create/update hooks now call runEnsureNow() so Payload has the user
before the response (fixes magic-link redirect seeing missing user).
- Change auth methods endpoint from /auth/methods to /methods so the
full path is /api/auth/methods; update BetterAuthLoginServer fetch URL.
- Reconcile queue: extract runEnsure(), add public runEnsureNow() for
use from hooks while still enqueueing for idempotent retry.
- E2E: add dev:auth:test script and second Playwright webServer so tests
run with both app and auth server; run build before dev:build in e2e.
- dev: point next-env.d.ts at .next/types/routes.d.ts.1 parent ab7dc21 commit b7fc11b
File tree
13 files changed
+93
-55
lines changed- dev
- dist
- better-auth
- components
- src
- better-auth
- components
13 files changed
+93
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments