react-oidc-context icon indicating copy to clipboard operation
react-oidc-context copied to clipboard

Using with Ionic / Capacitor not working

Open PauloRodrigues33 opened this issue 1 year ago • 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?

PauloRodrigues33 avatar Feb 23 '24 02:02 PauloRodrigues33

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

askasp avatar Jun 02 '24 20:06 askasp

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

taszilvo avatar Aug 07 '24 18:08 taszilvo