Added getAuthArray to auth classes and auth.php