When you successfully authorize a Ninja-Forms website from Mautic you return back to the settings page and it still shows you the box for keys and the Authorize button.
If you click on Form > Settings again, you'll notice that it now does not display the API text boxes and shows "Re-Authorize" instead.
wp_redirect when coming back throws an exception that headers have already been sent so that cannot be used.
When you successfully authorize a Ninja-Forms website from Mautic you return back to the settings page and it still shows you the box for keys and the Authorize button.
If you click on Form > Settings again, you'll notice that it now does not display the API text boxes and shows "Re-Authorize" instead.
wp_redirect
when coming back throws an exception that headers have already been sent so that cannot be used.