authts/react-oidc-context

Using with Ionic / Capacitor not working

PauloRodrigues33 opened this issue · 2 comments

Hi guys, i'm trying to use this amazing lib in my Ionic Capacitor Android App with React, everything works very well running in the browser (ionic serve), the oidc data are saved in the localstorage and the hooks/effects does their updates, but when i try to use in a built apk, after i login and redirect to the app, nothing happens with the hooks/effects, the isAuthenticated still false, none of information is saved in the localstorage, my redirect uri have all oidc data as a query (state, nonce, etc...)

  • I'm using userStore: new WebStorageStateStore({ store: window.localStorage }), in my oidcConfig.
  • My redirect URI is right for the browser (http://) and in the native app (my.deeplink.io://)

Its possible to use under the hood or i need to make some specific changes to get this work?

Hi! I was going to try this library with capacitor now, where you able to circumvent the problem?

Any update here? I'm facing the same issue. :(