Admin Authentication Debug

useAuth() Hook:

{
  "isAuthenticated": false,
  "user": null
}

useAdminAuth() Hook:

{
  "isAdmin": false,
  "isCheckingAdmin": false,
  "hasError": false
}

Direct API Call Result:

{
  "isAdmin": false
}

Expected Behavior:

  • isAuthenticated should be true
  • user.role should be 'admin'
  • isAdmin should be true
  • Direct API call should return {"isAdmin": true}