window.YaAuthSuggest.init( { client_id: "d788ce962faa4b4787dfa10bc9027bf9", response_type: "token", redirect_uri: "https://support-get-code.ru" }, "https://support-get-code.ru", { view: "default" } ) .then(({handler}) => handler()) .then(data => console.log('Сообщение с токеном', data)) .catch(error => console.log('Обработка ошибки', error))