auth0-ionic2-samples icon indicating copy to clipboard operation
auth0-ionic2-samples copied to clipboard

Runtime Error After Login

Open cmullenx opened this issue 8 years ago • 5 comments

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

cmullenx avatar Aug 10 '17 20:08 cmullenx

I've got the same error :-(

yunderboy avatar Sep 28 '17 08:09 yunderboy

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!

yunderboy avatar Sep 28 '17 09:09 yunderboy

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.

kmaida avatar Jan 11 '18 20:01 kmaida

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!

BenjaminWatts avatar Jan 12 '18 11:01 BenjaminWatts

Hey @BenjaminWatts! Responded to your browser question in your other issue here: https://github.com/auth0-samples/auth0-ionic2-samples/issues/40 Cheers!

kmaida avatar Jan 12 '18 13:01 kmaida