experimental hooks feature for inserting custom middleware into auth flow