Runtime Error After Login
I cloned down the repo and am able to successfully login via Auth0. However, after I login I receive a runtime error.
Runtime Error Ionic Framework: 3.1.1 Ionic App Scripts: 1.3.12 Angular Core: 4.0.2 Angular Compiler CLI: 4.0.2 Node: 6.9.3 OS Platform: macOS Sierra Navigator Platform: MacIntel User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
I've got the same error :-(
Hey @cmullenx don't know whether you're still struggeling with the bug. But for me, the problem was due to the way that the ionic livereloading server works. When I built the app, and ran it as an .apk on my android phone, it worked perfectly.
Hope it helps!
There are many different reasons this might happen, so one simplistic (and non-platform-specific) way to to track down the cause is to alert the error in the authorize() callback. You can stringify it in order to show the object's contents in an alert on your device:
if (err) {
alert(JSON.stringify(err));
throw err;
}
BTW, we are in the process of updating this quick start material, and a new version (with Ionic 3) should be available shortly.
hey - I am getting exactly the same issue on iOs - looking forward to seeing a new version - @kmaida - are there any plans to make it compatible with browser running as well - kind of defeats point of Ionic is you're confined to native app builds!
Hey @BenjaminWatts! Responded to your browser question in your other issue here: https://github.com/auth0-samples/auth0-ionic2-samples/issues/40 Cheers!