Redirect URL setting after authentication is ignored

I am implementing this using custom authentication.
The connection with web3auth is completely successful, but any redirects I specify after authentication are ignored.
(To be precise, I am redirected to the page where web3auth is initialized.)
Is there a wrong way to specify this? Or is it impossible to specify a redirect destination for custom authentication?

I have checked this document
https://web3auth.io/docs/sdk/web/openlogin#connectto

const connecter = await web3Auth.connectTo(
    WALLET_ADAPTERS.OPENLOGIN,
    {
        loginProvider: "jwt",
        extraLoginOptions: {
            id_token: jwtToken, 
            domain: "https://xxxxx.amazoncognito.com/",
            verifierIdField: "email",
            redirect_uri: window.location.href,
        },
    }
);


Originally posted by: yusakapon

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/383

Hi I have the exact same problem. When doing

                extraLoginOptions.redirect_uri = storedRedirectUri;
                await web3auth.connectTo("openlogin", {
                    loginProvider: "jwt",
                    extraLoginOptions: extraLoginOptions,
                });

Web3Auth successfully verifies the JWT but then redirects back to the same page. It is not using redirect_uri in the params.

Any help appreciated.

Hey @silver,

Could you please share the console logs so I can confirm there are no errors?

Also, did this issue start happening recently, possibly after an upgrade? And finally, what type of login are you using (e.g., Auth0, etc.)?

I would highly recommend opening a new thread, as these threads are archived ones that we migrated to our community discourse from GitHub discussions. We can continue the conversation there.