@auxcode/auxta 1.3.73-beta.3 → 1.3.73-beta.5
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.
|
@@ -175,9 +175,9 @@ class AuxGoogleAuth {
|
|
|
175
175
|
static LogIn(authUrl) {
|
|
176
176
|
var _a, _b;
|
|
177
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
-
yield puppeteer_extra_1.default.startBrowser();
|
|
179
178
|
const email = EMAIL ? EMAIL : process.env.google_account;
|
|
180
179
|
const password = PASSWORD ? PASSWORD : process.env.google_password;
|
|
180
|
+
yield puppeteer_extra_1.default.startBrowser();
|
|
181
181
|
if (email && password) {
|
|
182
182
|
const context = yield puppeteer_extra_1.default.defaultPage.browser().createIncognitoBrowserContext();
|
|
183
183
|
const page = yield context.newPage();
|
|
@@ -214,6 +214,7 @@ class AuxGoogleAuth {
|
|
|
214
214
|
return decodeURIComponent(code);
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
|
+
yield puppeteer_extra_1.default.close();
|
|
217
218
|
throw new Error('The email or password for the google account are empty');
|
|
218
219
|
}
|
|
219
220
|
});
|