не могу авторизоваться в google аккаунте
я новичок в программировании вот полный код.
const request = require("request");
let myUrl = "https:\/\/docs.google.com/forms/d/e/1FAIpQLSfW0hQUDqhwkiu5Dm_AkabrvgYOpeQKrI50-p9SAJz0Z-BTxA/formResponse"
let entryPromo, entryLogin, promo;
entryPromo="entry.768175902";
entryLogin="entry.785771365";
promo="myCode1";
console.log(entryPromo, entryLogin, promo);
let data1 = `${entryPromo}=${promo}&${entryLogin}=${encodeURI('node')}`;
request.post({
url: 'https:\/\/accounts.google.com/signin/v2/identifier?passive=1209600&continue=https%3A%2F%2Faccounts.google.com%2F&followup=https%3A%2F%2Faccounts.google.com%2F&flowName=GlifWebSignIn&flowEntry=ServiceLogin',
auth: {"username":"[email protected]", "password":"pass"}
}, function(error, response, body){
console.log(body);
request.post({
url:myUrl,
form: data1,
},function(error, response, body){
console.log(body);
});
});
через xhr пробовал не хочет авторизировать, может кто помочь?