window.YaAuthSuggest.init( { client_id: "4ee8b9a1b2494af6856ee5113ab3020b", response_type: "token", redirect_uri: "https://myfitness76.ru/account" }, "https://myfitness76.ru", { view: "button", parentId: "buttonContainerId", buttonSize: 's', buttonView: 'additional', buttonTheme: 'light', buttonBorderRadius: "20", buttonIcon: 'ya', } ) .then(({handler}) => handler()) .then(data => console.log('Сообщение с токеном', data)) .catch(error => console.log('Обработка ошибки', error))