Make sure that you send the 'action' and 'auth' as GET parameters and JSON as POST