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

Cannot authenitcate with Google, even with App Password #267

Open
meetmagdalene opened this issue Oct 23, 2017 · 2 comments
Open

Cannot authenitcate with Google, even with App Password #267

meetmagdalene opened this issue Oct 23, 2017 · 2 comments

Comments

@meetmagdalene
Copy link

meetmagdalene commented Oct 23, 2017

I am unable to login using my Google account. Here is how I'm setting it up as in the example.js:

var a = new PokemonGo.Pokeio();

var username = '<google-username-here>';
var password = '<app-password-here>';
var provider = 'google';

var location = {
    type: 'name',
    name: process.env.PGO_LOCATION || 'Times Square'
};

a.init(username, password, location, provider, function(err) {
    if (err) throw err;

    console.log('1[i] Current location: ' + a.playerInfo.locationName);
    console.log('1[i] lat/long/alt: : ' + a.playerInfo.latitude + ' ' + a.playerInfo.longitude + ' ' + a.playerInfo.altitude);
});

And this is the console output:

I20171023-15:09:47.704(-5)? [i] Logging with user: <google-username>
I20171023-15:09:47.971(-5)? undefined
W20171023-15:09:47.975(-5)? (STDERR) /home/msher7184919/Sites/GoScanner/.meteor/local/build/programs/server/app/app.js:20
W20171023-15:09:47.976(-5)? (STDERR)     if (err) throw err;                                                 // 15
W20171023-15:09:47.977(-5)? (STDERR)              ^
W20171023-15:09:47.977(-5)? (STDERR) 
W20171023-15:09:47.978(-5)? (STDERR) Error: 403 error from server
W20171023-15:09:47.978(-5)? (STDERR)     at IncomingMessage.<anonymous> (/home/msher7184919/Sites/GoScanner/node_modules/gpsoauthnode/oauth.js:61:23)
W20171023-15:09:47.979(-5)? (STDERR)     at emitNone (events.js:72:20)
W20171023-15:09:47.980(-5)? (STDERR)     at IncomingMessage.emit (events.js:166:7)
W20171023-15:09:47.980(-5)? (STDERR)     at endReadableNT (_stream_readable.js:923:12)
W20171023-15:09:47.981(-5)? (STDERR)     at nextTickCallbackWith2Args (node.js:511:9)
W20171023-15:09:47.982(-5)? (STDERR)     at process._tickCallback (node.js:425:17)
=> Exited with code: 1

I do not have 2-step authentication on this particular google account, but I follew the steps in this issue here (#94) to set up an app password anyway and using the app password did not fix the issue.

Any thoughts or is this API dead?

@billyriantono
Copy link
Collaborator

I think we need to update the google auth libs. 😄

@magewire
Copy link

Same issue - is there a fix in place for this yet

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

3 participants