Something like this. Even async/await don’t work. Also while making pair.emit(""), it not emit and not send it to View.html. In general, not a single pair command does not work, They only works in View.html
Regardless of whether the other methods are declared or not, they should work. Are you sure your HTML page isn’t erroring out on something? If you’re not already doing so, run the pairing process from the developer website and keep your browser’s developer tools/console open.
You can’t forward users to websites for authentication like that. As far as I know, you need to either use the OAuth2 or the Credentials Login views (it doesn’t look like Yandex is using OAuth2), or provide an alternative that doesn’t require directing the user to an external website.