Class: OAuth2Util

OAuth2Util()

The OAuth2Util class exposes static methods that are useful for OAuth2 interactions.

Constructor

new OAuth2Util()

Methods

(static) generateOAuth2Callback(oauth2Account, socket) → {EventEmitter}

This method creates a new instance of Homey.CloudOAuth2Callback based on a provided OAuth2Account. It will then handle the OAuth2 exchange to finally retrieve a set of access tokens.

Parameters:
Name Type Description
oauth2Account OAuth2Account

This account is used for the token exchange

socket
Returns:
Type
EventEmitter