Closed atts closed 5 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
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