friendlyeats-web
friendlyeats-web copied to clipboard
currentUser is null after logging in in app/page.tsx
I understand that page.tsx is a server rendered component, but is it possible to update currentUser somehow after a log in happens?
The flow I want:
- Sign in modal is shown on landing page
- If user is authenticated (currentUser is not null), page.tsx stops showing sign in modal
It works after refreshing, but without refreshing, currentUser remains null. What's the best practice to deal with this?