Added debug param to getAuthArray method