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

oauth2 credentials. #88

Open
juancarloscamargo opened this issue Mar 22, 2018 · 1 comment
Open

oauth2 credentials. #88

juancarloscamargo opened this issue Mar 22, 2018 · 1 comment

Comments

@juancarloscamargo
Copy link

Hi,

Is there any problem with the authorization? Seems to me that the oauth2 credentials are no longer valid.
Regards!

@ROMTypo
Copy link

ROMTypo commented Jul 25, 2018

Yeah I saw that, I figured out a way around it.
I had to manually create the cookies. The cookies required are NID, SID, HSID, SSID, APISID and SAPISID.

If you login to Hangouts in chrome, open inspect element and go to the "Application" tab then cookies then hangouts.google.com

Copy the values for each of the above mentioned cookies and put them in a text file on their own line.

var Cookies=['NID=[NID VALUE]; Expires=Wed, 04 Nov 2019 06:10:24 GMT; Domain=google.com; Path=/; HttpOnly',

'SID=[SID VALUE]; Domain=google.com; Path=/',

'HSID=[HSID VALUE]; Domain=google.com; Path=/; HttpOnly; Priority=HIGH',

'SSID=[SSID VALUE]; Expires=Thu, 04 May 2019 06:10:24 GMT; Domain=google.com; Path=/; Secure; HttpOnly; Priority=HIGH',

'APISID=[APISID VALUE]; Expires=Thu, 04 May 2019 06:10:24 GMT; Domain=google.com; Path=/; Priority=HIGH',

'SAPISID=[SAPISID VALUE]; Expires=Thu, 04 May 2019 06:10:24 GMT; Domain=google.com; Path=/; Secure; Priority=HIGH'];
var creds=()=>{
return Q({cookies:Cookies});
};

Add that to the top of your file. Then at the bottom of your script add

client.connect(creds).then(()=>{
console.log("Logged in!");
}).done()

That should work if you did everything right, cheers!

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