Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

ionic v1 - facebook authentication class is invalid #216

Open
aviking1973 opened this issue Jun 6, 2017 · 1 comment
Open

ionic v1 - facebook authentication class is invalid #216

aviking1973 opened this issue Jun 6, 2017 · 1 comment

Comments

@aviking1973
Copy link

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)

@aviking1973
Copy link
Author

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
                    })
                })

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant