Authentication Debug Tool
Instructions
- Click "Check Auth Status" to see current authentication state
- If there are issues, click "Clear All Auth Data" to reset everything
- Update the testLogin function with your credentials and test login
- Check the browser console for detailed logs
- If session exists but dashboard still redirects, there's a middleware issue
- Click "Force User Context Check" to see if useUser hook is synced