Authentication Debug Tool

Instructions

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