[Archive] Unable to login with custom jwt provider

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 2/21/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


When trying to login via custom jwt provider (AWS Cognito) a safari page with web3auth open login opens, loads and stucks without redirecting through deep link.
Any help would be appreciated, been stuck with this for a while
Code snippet:

        const web3auth = new Web3Auth(WebBrowser, {
            clientId: clientId,
            network: OPENLOGIN_NETWORK.TESTNET,
            redirectUrl: deepLink,
            loginConfig: {
              jwt: {
                verifier,
                typeOfLogin: LOGIN_PROVIDER.JWT
              },
            }
        });
        const data = await web3auth.login({
            loginProvider: LOGIN_PROVIDER.JWT,
            extraLoginOptions: {
                id_token: token,
                verifierIdField: "username"
            },
        });



Originally posted by: zolottareva

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