diff --git a/example.php b/example.php index 9d2fb3f..1c2c378 100644 --- a/example.php +++ b/example.php @@ -38,9 +38,15 @@ class="amocrm_oauth" data-class-name="className" data-color="default" data-state="' . $_SESSION['oauth2state'] . '" + data-error-callback="handleOauthError" src="https://www.amocrm.ru/auth/button.min.js" > '; + echo ''; die; } else { $authorizationUrl = $provider->getAuthorizationUrl();