AuthQuery.wrap