lib/GoogleUtilities.js
/**
   * Authenticate with Service Account (make sure to share the file with the service account)
   * // todo may need to write some code for handing expirations of tokens
   *
   * @param scopes
   * @returns {Promise<JWT>}
   */
Authenticate with Service Account (make sure to share the file with the service account)
todo may need to write some code for handing expirations of tokens

@param scopes
@returns {Promise}
Authenticate with Service Account ( make sure to share the file with the service account ) todo may need to write some code for handing expirations of tokens @param scopes @returns { Promise }
async createServiceAccountAuthentication(scopes) {
    console.log(`${this._errorLogPrefix}Beginning createAuthentication`);
    const authentication = new google.auth.JWT(
        this._serviceAccount, null,
        JSON.parse(`"${this._privateKey}"`), scopes
    );
    console.log(`${this._errorLogPrefix}Finishing createAuthentication`);
    return authentication;
  }
async createServiceAccountAuthentication ( scopes ) { console . log ( ` ${ this . _errorLogPrefix } ` ) ; const authentication = new google . auth . JWT ( this . _serviceAccount , null , JSON . parse ( ` ${ this . _privateKey } ` ) , scopes ) ; console . log ( ` ${ this . _errorLogPrefix } ` ) ; return authentication ; }
Authenticate with Service Account (make sure to share the file with the service account)
 // todo may need to write some code for handing expirations of tokens
Authenticate with Service Account ( make sure to share the file with the service account ) // todo may need to write some code for handing expirations of tokens