sabyasachibiswal / angular5-social-login

Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
40 stars 74 forks source link

LinkedIn sign in issue while using cookie #17

Closed atts closed 5 years ago

atts commented 6 years ago

Hi, I am using ngx-cookie service. Upon reading the value from cookie in component constructor, I try to call socialSignIn('linkedin') but get error :

Reference error : IN is not defined at line

LinkedinLoginProvider.prototype.signIn = function () { var _this = this; return new Promise(function (resolve, reject) { IN.User.authorize(function () { IN.API.Raw('/people/~:(id,first-name,last-name,email-address,picture-url)').result(function (res) { resolve(_this.drawUser(res)); }); }); });

Not sure how IN will get initialized here. Please help as I am stuck at this.

Thanks, Atul