Skip to content

Using with Ionic / Capacitor not working #1145

Open
@PauloRodrigues33

Description

@PauloRodrigues33

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CapacitorCapacitor is an open source native runtime for building Web Native apps.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions