Please provide the following details too when asking for help in this category:
-
SDK Version:
“@web3auth/base”: “^3.0.4”,
“@web3auth/core”: “^3.0.4”,
“@web3auth/ethereum-provider”: “^3.0.4”,
“@web3auth/metamask-adapter”: “^3.0.4”,
“@web3auth/modal”: “^3.0.4”,
“@web3auth/openlogin-adapter”: “^3.0.4”,
“@web3auth/wallet-connect-v1-adapter”: “^3.0.4”, -
Platform: React Web
-
Browser Console Screenshots:
- 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:
const web3AuthInstance = new Web3AuthCore({
chainConfig: currentChainConfig,
clientId: WEB3_AUTH_CLIENT_ID,
});
const openLoginAdapter = new OpenloginAdapter({
adapterSettings: {
clientId: WEB3_AUTH_CLIENT_ID,
network: web3AuthNetwork,
uxMode: ‘redirect’,
loginConfig: {
jwt: {
name: ‘op3n-verify-er’,
verifier: WEB3_AUTH_FIREBASE_VERIFIER,
typeOfLogin: ‘jwt’,
clientId: WEB3_AUTH_CLIENT_ID,
},
},
whiteLabel: {
dark: true,
name: ‘op3n’,
logoLight: ‘https://staging.op3n.world/images/op3nAuthLogo.svg’,
logoDark: ‘https://staging.op3n.world/images/op3nAuthLogo.svg’,
},
},
chainConfig: currentChainConfig,
});
await web3AuthInstance.configureAdapter(openLoginAdapter);
await web3AuthInstance.init();