Open aviking1973 opened 6 years ago
Looking on the ionic.cloud.min.js the error is here:
e.prototype.login = function(e, t, n) {
var o = this;
void 0 === n && (n = {}), "undefined" == typeof n.remember && (n.remember = !0), "undefined" == typeof n.inAppBrowserOptions && (n.inAppBrowserOptions = {}), "undefined" == typeof n.inAppBrowserOptions.location && (n.inAppBrowserOptions.location = !1), "undefined" == typeof n.inAppBrowserOptions.clearcache && (n.inAppBrowserOptions.clearcache = !0), "undefined" == typeof n.inAppBrowserOptions.clearsessioncache && (n.inAppBrowserOptions.clearsessioncache = !0);
var r = this.authModules[e];
if (!r) throw new Error("Authentication class is invalid or missing:" + r);
return r.authenticate(t, n).then(function(e) {
return o.storeToken(n, e.token), o.userService.load().then(function() {
var t = o.userService.current();
return t.store(), e
})
})
I follow this tutorial: https://docs.ionic.io/services/auth/facebook-auth.html but trying to connect to facebook from Chrome brwser I've got the error below:
Am I doing something wrong?
Error: Authentication class is invalid or missing:undefined at e.login (ionic.cloud.min.js:6) at ChildScope.$scope.onClickIonicFacebookAuth (controllers.js:168) at fn (eval at compile (ionic.bundle.js:27643),:4:263)
at ionic.bundle.js:65429
at ChildScope.$eval (ionic.bundle.js:30400)
at ChildScope.$apply (ionic.bundle.js:30500)
at HTMLButtonElement. (ionic.bundle.js:65428)
at defaultHandlerWrapper (ionic.bundle.js:16792)
at HTMLButtonElement.eventHandler (ionic.bundle.js:16780)
at triggerMouseEvent (ionic.bundle.js:2953)
at tapClick (ionic.bundle.js:2942)
at HTMLDocument.tapTouchEnd (ionic.bundle.js:3069)