After https://github.com/elastic/kibana/pull/41894 we can adopt the same `ResponseFactory` format for - onPreAuth - Auth - onPostAuth interceptors to allow them to specify response with headers and payload as well.
After #41894 we can adopt the same
ResponseFactoryformat forinterceptors to allow them to specify response with headers and payload as well.