I'm using different NPM package of angular v6 for login with LinkedIn API.
But I'm facing one issue in every package. And even in last running website which was developed in JavaScript also throwing the same issue now. After debugging I found a problem in https://platform.linkedin.com/in.js.
Error is shown in the console as follows-
main.7cd16821a6fe05c4faf5.js:1 ERROR Error: Uncaught (in promise): TypeError: Cannot read property then of undefined
TypeError: Cannot read property then of undefined
at Object.authorize (in.js:18)
I've tried following angular packages-
1. https://www.npmjs.com/package/angular-linkedin-sdk
2. https://www.npmjs.com/package/angularx-social-login
Also tried to create raw javascript SDK project.
DEMO- https://abacritt.github.io/angularx-social-login/
So is it really API problem or is there any mistake from my end ? if yes then what is that?
If there are other ways to do sign with LinkedIn let me know those.