Example implementation of query-auth library