Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

Not compatible with browserify #239

Closed ChenLi0830 closed 7 years ago

ChenLi0830 commented 7 years ago

Tried to use browserify with it but failed.

It seems to be caused by the dependency geocoder which is no longer maintained. This dependency uses an old version of "request" which is not browserify compatible.

ChenLi0830 commented 7 years ago

Update For anyone who might be interested, this and any other similar packages are not going to work on modern browsers.

Here is why - when a client browser tries to send a login request, the response from the authentication servers (google and PTC) has a 'Access-Control-Allow-Origin' header of what domain should receive the response and that will cause any modern browser to refuse the response. Thus, not be able to login to your account.