authts / react-oidc-context

Lightweight auth library based on oidc-client-ts for React single page applications (SPA). Support for hooks and higher-order components (HOC).
MIT License
653 stars 64 forks source link

Using with Ionic / Capacitor not working #1145

Open PauloRodrigues33 opened 6 months ago

PauloRodrigues33 commented 6 months ago

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...)

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

askasp commented 3 months ago

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

taszilvo commented 1 month ago

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