React Native SDK, Sapphire Devnet, redirect url whitelist not working

Please provide the following details too when asking for help in this category:

Have been using SDK version 3.5 for the past 2 weeks, but suddenly stopped working. So tried to use SDK version 4.0.0, but same error.

  • SDK Version: 4.0.0

  • Expo or Bare Version: Bare Version

  • Screenshots of error:

  • Related to Custom Authentication? Please provide the following info too: (Optional)

    • Verifier Name:
    • JWKS Endpoint:
    • Sample idToken(JWT)

Please provide the Web3Auth initialization and login code snippet below:

import EncryptedStorage from 'react-native-encrypted-storage';

// const redirectUrl = `https://dev-sdk.openlogin.com `;
// const redirectUrl = `ariseweb3auth://auth`;
const redirectUrl = `ariseweb3auth://openlogin`;

const clientId = WEB3_AUTH_CLIENT_ID;

const web3AuthParams: SdkInitParams = {
  clientId,
  network: OPENLOGIN_NETWORK.TESTNET,
  loginConfig: {
    // Add login configs corresponding to the provider
    // For firebase/ cognito & other providers, you need to pass the JWT token
    // JWT login
    jwt: {
      verifier: 'arise-auth-verifier-testnet', // Please create a verifier on the developer dashboard and pass the name here
      typeOfLogin: 'jwt',
      clientId
    }
    // Add other login providers here
  }
};

const web3auth = new Web3Auth(WebBrowser, EncryptedStorage, web3AuthParams);

const login = async (loginProvider: string) => {
  return new Promise(async (resolve, reject) => {
    try {
      const response = await web3auth.login({
        loginProvider,
        redirectUrl,
        mfaLevel: MFA_LEVELS.OPTIONAL,
        curve: 'secp256k1'
      });

      resolve(response);
    } catch (err) {
      reject(err);
    }
  });
};

@kevin.janada Plug and Play doesn’t support Sapphire Devnet yet.
Pls deploy on mainnet/cyan/aqua directly and use it