Skip to content

Possibility to access signinCallback function? #1216

@ns-ovc

Description

@ns-ovc

I have a website that is also converted into an app via Capacitor. The login on the website works without any problems. But not for the native app.
There is a hook for Capacitor when the redirect URL is called from the auth provider.

    CapApp.addListener("appUrlOpen", async ({ url }) => {
        // TODO: handle URL
    });

A URL is returned that contains the code & session_state. I would need to call a function there to handle the URL (not window.location.href). Is there a way to do this?

In auth0-react there is a function called "handleRedirectCallback(url)" that does just that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CapacitorCapacitor is an open source native runtime for building Web Native apps.questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions