We were not using the Universal Login - New Experience by the time i posted this and we have changed our mind not to switch to it. We have multiple applications using the same auth0 tenant and it was not possible for us to run the hook for only that application without affecting the rest.
Otherwise we shall wait for communication from @konrad.sopala and see if it will help @brijesh1 solve the issue.