Core Problem
The useFrappeAuth() hook's currentUser remains undefined even after successful login, causing the SDK to fail in maintaining authentication state.
Specific Issues
Session State Not Updating
frappeLogin() succeeds but currentUser never gets set
SDK state doesn't reflect successful authentication
Session restoration doesn't work on page refresh
Cookie Management
No session cookies are being set after login
Core Problem
The useFrappeAuth() hook's currentUser remains undefined even after successful login, causing the SDK to fail in maintaining authentication state.
Specific Issues
Session State Not Updating
frappeLogin() succeeds but currentUser never gets set
SDK state doesn't reflect successful authentication
Session restoration doesn't work on page refresh
Cookie Management
No session cookies are being set after login