@xuda.io/account_module 1.2.112 → 1.2.113
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.
- package/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1363,16 +1363,18 @@ const get_prices = function (uid, item) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
1365
|
exports.create_account_oauth_link = async function (req, job_id) {
|
|
1366
|
+
const link = `https://accounts.google.com/o/oauth2/v2/auth?scope=https://mail.google.com/&access_type=offline&include_granted_scopes=true&response_type=code&state=${req.uid}&redirect_uri=https://${_conf.is_debug ? 'dev.' : ''}xuda.io/oauth&client_id=${_conf.gmail.clientId}`;
|
|
1366
1367
|
await jobs_module.update_job(
|
|
1367
1368
|
{
|
|
1368
1369
|
job_id,
|
|
1369
1370
|
current_step_name: 'creating link',
|
|
1371
|
+
response: link,
|
|
1370
1372
|
},
|
|
1371
1373
|
global[`_account_module_ch`],
|
|
1372
1374
|
);
|
|
1373
1375
|
return {
|
|
1374
1376
|
code: 1,
|
|
1375
|
-
data:
|
|
1377
|
+
data: link,
|
|
1376
1378
|
};
|
|
1377
1379
|
};
|
|
1378
1380
|
|