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

logout & login again fails and get empty/hided browser

Open biemond opened this issue 7 years ago • 1 comments

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

biemond avatar May 22 '17 19:05 biemond

Nice this works for me

  (<any>window).handleOpenURL = (url) => {
    (<any>window).setTimeout(function () {
      Auth0Cordova.onRedirectUri(url);
    }, 100);
  };

biemond avatar May 30 '17 19:05 biemond