import { getInjectedAdapters } from “@web3auth/default-solana-adapter”;
const web3AuthOptions: Web3AuthOptions = {
clientId,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
uiConfig: {
uxMode: “redirect”,
appName: “xxx”,
appUrl: “xxx”,
theme: {
primary: “gray”,
},
logoLight: “xxx”,
logoDark: “xxx”,
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 adapters = await getInjectedAdapters({ options: web3AuthOptions })
const phantomAdapter = adapters.find((e) => e.name == “phantom”)
if (phantomAdapter) {
web3auth.configureAdapter(phantomAdapter)
}
await web3auth.initModal();
"@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",
Above code will display all kinds of wallets in the web3auth login modal. But I only want to show Phantom.