Hello, @or.ahlagi,
Unfortunately I won’t be able to review your code, but I can tell you that if you are making a call as stated here: Auth0 Management API v2
You will get redirected accordingly. I just tried this myself and got redirected to my specified redirect URL.
Could you review the API reference, and try the call again?
Thanks!