ArkeologeN / node-linkedin

LinkedIn 2.0 wrapper in Node.js
MIT License
163 stars 78 forks source link

No error on wrong access token during init. #81

Closed umarhussain15 closed 6 years ago

umarhussain15 commented 7 years ago

If I give a wrong accesstoken to the init function, does it throws any error ? because after that when I try to retrieve the profile the error is null and the userResult json contains error code 0 and status code 401

ArkeologeN commented 6 years ago

I'm afraid because when you pass it to init, it just set it internally in the wrapper for later use. Once you actually call an endpoint, the token is sent and a response is given as described.