Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to login with my correct credentails, throw some "moved temporarily" error #18

Closed
assadvirgo opened this issue Feb 18, 2019 · 2 comments

Comments

@assadvirgo
Copy link

I tried to login with my correct credentials but got following error which i ran following code

reqHandler.login({
mail: MAIL,
password: PASSWORD
}, (err, debug) => {
console.log(debug.statusCode);
// For success, you should see here '302'.
console.log(debug.headers);
// For success, in 'set-cookie' header content, you should see SID, LSID, HID, SSID (etc.) definitions.
console.log(debug.body);
// For success, this should be short and include "LoginDoneHtml" and "Moved Temporarily" text inside.
});

ERROR

302
{ 'content-type': 'text/html; charset=UTF-8',
'x-frame-options': 'DENY',
'cache-control': 'no-cache, no-store, max-age=0, must-revalidate',
pragma: 'no-cache',
expires: 'Mon, 01 Jan 1990 00:00:00 GMT',
date: 'Mon, 18 Feb 2019 06:05:45 GMT',
location:
'https://accounts.google.com/signin/rejected?hl=en-GB&rrk=47&rhlk=js',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
'content-security-policy':
"script-src 'report-sample' 'nonce-+HbaFxf5NKhmo/0ETbtp3A' 'unsafe-inline' 'unsafe-eval';object-src 'none';base-uri 'self';report-uri /cspreport",
'content-length': '257',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
server: 'GSE',
'alt-svc': 'quic=":443"; ma=2592000; v="44,43,39"',
connection: 'close' }

<TITLE>Moved Temporarily</TITLE>

Moved Temporarily

The document has moved here.
@adasq
Copy link
Owner

adasq commented Feb 18, 2019

Please try authenticate with the way described here:

#17 (comment)

@assadvirgo
Copy link
Author

@adasq Thanks it helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants