Removed redundant code in queryAuth.