This guide shows you how to choose which ways to connect the SDK offers users. By default it offers email, Google and X sign-in, which create an embedded wallet, plus external wallets. DogeOS runs the sign-in for every method; you only choose which ones appear.
Show Only Some Methods#
Set login.basicLogins and login.socialLogins. For example, to offer Google and X sign-in and external wallets, but not email:
import type { WalletConnectKitConfig } from "@dogeos/dogeos-sdk"
const dogeConfig: WalletConnectKitConfig = {
clientId: "YOUR_DOGEOS_CLIENT_ID",
login: {
basicLogins: ["externalWallets"],
socialLogins: [{ type: "google" }, { type: "x" }],
},
}If you leave out either array, it keeps its default methods. Set an array to [] to hide all of its methods.
Offer External Wallets Only#
To turn off email and social sign-in, and with them the embedded wallet, set both arrays:
import type { WalletConnectKitConfig } from "@dogeos/dogeos-sdk"
const dogeConfig: WalletConnectKitConfig = {
clientId: "YOUR_DOGEOS_CLIENT_ID",
login: {
basicLogins: ["externalWallets"],
socialLogins: [],
},
}The SDK no longer loads the embedded wallet, and useWalletConnect().walletStatus reads "disabled". To offer mobile wallets as well as browser extensions, also enable WalletConnect.
Inside the MyDoge app, the SDK always connects MyDoge’s own wallet, whatever you set here.