auth0-ionic2-samples
auth0-ionic2-samples copied to clipboard
logout & login again fails and get empty/hided browser
hi,
Great work and it works with lazy loading etc But I have some issues when I log out and try to log in again.
On IOS I get a browser windows with no url and on android I get the front screen again. I cannot log in again. I have the reset the data on android & ios emulate.
I don't know if this is a problem with this example or with Auth0Cordova
Also I have to import Auth0Cordova and Auth0 like this else they are not imported or load them in the index.html from cdn
import * as Auth0Cordova from '@auth0/cordova'; import * as Auth0 from 'auth0-js';
Thanks Edwin
Nice this works for me
(<any>window).handleOpenURL = (url) => {
(<any>window).setTimeout(function () {
Auth0Cordova.onRedirectUri(url);
}, 100);
};