@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 oAuth2Client.getToken(code, (err, token) => {
137
- if (err)
138
- return console.error('Error retrieving access token', err);
139
- oAuth2Client.setCredentials(token);
140
- TOKEN = token;
141
- this._oAuth2Client = oAuth2Client;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "1.3.51-beta.19",
3
+ "version": "1.3.51-beta.20",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",