From e3065c20a7ed408cc545ddb077e6d4e23c6a4c29 Mon Sep 17 00:00:00 2001 From: serknight Date: Tue, 4 Feb 2020 14:06:46 -0700 Subject: [PATCH] one change at a time --- src/xeroClient.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xeroClient.ts b/src/xeroClient.ts index ed6c7ed7c..36683cfdd 100644 --- a/src/xeroClient.ts +++ b/src/xeroClient.ts @@ -41,8 +41,7 @@ export class XeroClient { } async buildConsentUrl() { - const client = this.openIdClient || this.buildClient() - const url = client.authorizationUrl({ + const url = this.openIdClient.authorizationUrl({ redirect_uri: this.config.redirectUris[0], scope: this.config.scopes.join(' ') || 'openid email profile' });