"@web3auth/auth-adapter": "^9.4.0",
"@web3auth/base": "^9.4.0",
"@web3auth/default-solana-adapter": "^9.4.4",
"@web3auth/modal": "^9.4.1",
"@web3auth/solana-provider": "^9.4.0",
const web3AuthOptions: Web3AuthOptions = {
clientId,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
uiConfig: {
uxMode: "redirect",
appName: "xxx",
appUrl: "xxx",
theme: {
primary: "gray",
},
defaultLanguage: "en", // en, de, ja, ko, zh, es, fr, pt, nl, tr
mode: "dark", // whether to enable dark mode. defaultValue: auto
useLogoLoader: true,
},
privateKeyProvider: privateKeyProvider,
sessionTime: 86400 * 7, // 7 days
};
const authAdapter = new AuthAdapter({
loginSettings: {
mfaLevel: "none",
curve: "ed25519", // allowed values "secp256k1" (default, EVM) or "ed25519" (Solana)
},
adapterSettings: {
uxMode: "redirect",
},
privateKeyProvider: privateKeyProvider
});
web3auth.configureAdapter(authAdapter)
This will have all kinds of social login options inside the modal, but I only want to display Google login.