1 . Nomodel SDK what login adapter want use like (google,Jwt)
For this i have tried this with with out any login
in name option you tell "Your app name " (which app ). web3auth dashboard which app name i have to give plug and play or torus wallet . i have given Torus wallet and plug and play both and checked
var openloginAdapter = new OpenloginAdapter({
adapterSettings: {
clientId, //Optional - Provide only if you haven’t provided it in the Web3Auth Instantiation Code
network: “testnet”, // Optional - Provide only if you haven’t provided it in the Web3Auth Instantiation Code
uxMode: “popup”,
whiteLabel: {
name: “Lazyminter_Live_3”,
logoLight: “”,
logoDark: “”,
defaultLanguage: “en”,
dark: true, // whether to enable dark mode. defaultValue: false
},
},
});
this my Openlogin adapter
2. after inject login adapter the we init web3auth . For torus the after finishing both we inject TorusWalletConnectorPlugin
- Error: Provider does not have a request or send method to use.
var clientId = “BJY6haMjr9VElhzELmZa1A-4WdX35cOzHbuhhzQ-Vzqst4fh2kiZ8KCUOhH72IZXXnYRALMKU0RRw10wVeqTkd0”
try {
var web3auth = new Web3AuthNoModal({
clientId: “BJY6haMjr9VElhzELmZa1A-4WdX35cOzHbuhhzQ-Vzqst4fh2kiZ8KCUOhH72IZXXnYRALMKU0RRw10wVeqTkd0”,
web3AuthNetwork: “testnet”,
chainConfig: {
chainNamespace: “eip155”,
chainId: “0x13881”,
rpcTarget: “https://matic-mumbai.chainstacklabs.com”,
displayName: “Polygon Mumbai Testnet”,
blockExplorer: “https://mumbai.polygonscan.com/”,
ticker: “MATIC”,
tickerName: “Matic”,
},
});
console.log(“qweqweqweqweqweq”, web3auth);
var openloginAdapter = new OpenloginAdapter({
adapterSettings: {
clientId, //Optional - Provide only if you haven’t provided it in the Web3Auth Instantiation Code
network: “testnet”, // Optional - Provide only if you haven’t provided it in the Web3Auth Instantiation Code
uxMode: “popup”,
whiteLabel: {
name: “Lazyminter_Live_3”,
logoLight: “”,
logoDark: “”,
defaultLanguage: “en”,
dark: true, // whether to enable dark mode. defaultValue: false
},
},
});
if (web3auth) {
web3auth.configureAdapter(openloginAdapter);
await web3auth.init();
}
} catch (e) {
console.log(“asdwaeqwereqew”, e);
}
try {
var torusPlugin = new TorusWalletConnectorPlugin({
torusWalletOpts: {
buttonPosition: "bottom-left",
},
walletInitOptions: {
whiteLabel: {
theme: { isDark: true, colors: { primary: "#00a8ff" } },
logoDark: "",
logoLight: "",
},
useWalletConnect: true,
enableLogging: true,
},
});
console.log("qwewekowefioewr", torusPlugin);
if (torusPlugin) {
console.log("qweqjiqjoeqwirqri", torusPlugin);
await web3auth.addPlugin(torusPlugin);
}
} catch (e) {
console.log("dafnwjdsjvnosdfsdkf", e);
}
console.log("asijwieioroweri", web3auth);
i have attached screenshot