b637fd9c11a42de8aa23415edf6ed4daec326f91
Race condition between signUp/signIn completion and ProtectedRoute's useSession() call caused redirect loops — Better-Auth's session cookie is not immediately visible to useSession() after signUp/signIn resolves. Fix: call authClient.getSession() explicitly after signUp/signIn to synchronize before navigating to protected routes. Fall back to error message if session not confirmed. Also removes dead setAuthenticated() calls that only work in mock mode. Co-Authored-By: Paperclip <noreply@paperclip.ing>
Languages
Python
85.1%
TypeScript
13.6%
Shell
0.5%
Dockerfile
0.5%
Mako
0.1%