fix: refresh AuthContext after local sign-in/sign-up
AuthContext reads localStorage once on mount. After localSignIn() stores the JWT, the context still had user=null, so the layout redirected back to /login. Fix: expose refreshAuth() in the context and call it immediately after localSignIn/localSignUp so the state is updated before router.push(). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| Repository | rglauco/mike |
|---|---|
| Author | Glauco <37829079+rglauco@users.noreply.github.com> |
| Authored | |
| Parents | 9768aef9 |
| Stats | 3 files changed , +16 , -6 |
| Part of | Docker Compose + Local Postgres (Supabase-Optional Mode) |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-1b395c20.md
from inside the repo you want the change in.