Add an utility authorizedByAPIKey method for reuse