@auxcode/auxta 1.3.51-beta.20 → 1.3.51-beta.22
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.
|
@@ -49,7 +49,7 @@ function setupOverrideConfig(overrideConfig) {
|
|
|
49
49
|
}
|
|
50
50
|
exports.setupOverrideConfig = setupOverrideConfig;
|
|
51
51
|
exports.config = {
|
|
52
|
-
auxtaURL: "
|
|
52
|
+
auxtaURL: "https://auxta.live/.netlify/functions/",
|
|
53
53
|
baseURL: "",
|
|
54
54
|
siteURL: "",
|
|
55
55
|
organization: "",
|
|
@@ -16,6 +16,7 @@ exports.AuxGoogleAuth = void 0;
|
|
|
16
16
|
const config_1 = require("../../auxta/configs/config");
|
|
17
17
|
const puppeteer_1 = __importDefault(require("../../puppeteer/puppeteer"));
|
|
18
18
|
const code_helper_1 = __importDefault(require("../helpers/code.helper"));
|
|
19
|
+
const status_of_step_1 = __importDefault(require("../../auxta/enums/status-of.step"));
|
|
19
20
|
const fs = require('fs');
|
|
20
21
|
const readline = require('readline');
|
|
21
22
|
const { google } = require("googleapis");
|
|
@@ -140,11 +141,10 @@ class AuxGoogleAuth {
|
|
|
140
141
|
oAuth2Client.setCredentials(token);
|
|
141
142
|
TOKEN = token;
|
|
142
143
|
this._oAuth2Client = oAuth2Client;
|
|
144
|
+
code_helper_1.default.log('Then', 'I login with the google account', status_of_step_1.default.PASSED);
|
|
143
145
|
resolve(oAuth2Client);
|
|
144
146
|
});
|
|
145
147
|
})));
|
|
146
|
-
console.log(this._oAuth2Client);
|
|
147
|
-
console.log('sdf');
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
static LogIn(authUrl) {
|
|
@@ -176,6 +176,7 @@ class AuxGoogleAuth {
|
|
|
176
176
|
yield code_helper_1.default.timeout(3000);
|
|
177
177
|
const currentUrl = page.url();
|
|
178
178
|
const code = currentUrl.substring(currentUrl.indexOf("code=") + 5, currentUrl.lastIndexOf("&"));
|
|
179
|
+
code_helper_1.default.log('Then', 'I get the code form the url', status_of_step_1.default.PASSED);
|
|
179
180
|
yield page.close();
|
|
180
181
|
return decodeURIComponent(code);
|
|
181
182
|
});
|