@auxcode/auxta 1.3.51-beta.19 → 1.3.51-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -133,13 +133,18 @@ class AuxGoogleAuth {
|
|
|
133
133
|
scope: SCOPES,
|
|
134
134
|
});
|
|
135
135
|
const code = yield this.LogIn(authUrl);
|
|
136
|
-
yield
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
this._oAuth2Client = yield (new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
yield oAuth2Client.getToken(code, (err, token) => {
|
|
138
|
+
if (err)
|
|
139
|
+
return console.error('Error retrieving access token', err);
|
|
140
|
+
oAuth2Client.setCredentials(token);
|
|
141
|
+
TOKEN = token;
|
|
142
|
+
this._oAuth2Client = oAuth2Client;
|
|
143
|
+
resolve(oAuth2Client);
|
|
144
|
+
});
|
|
145
|
+
})));
|
|
146
|
+
console.log(this._oAuth2Client);
|
|
147
|
+
console.log('sdf');
|
|
143
148
|
});
|
|
144
149
|
}
|
|
145
150
|
static LogIn(authUrl) {
|