Integrate Social Accounts
Link and unlink social accounts and other identities to your user
Overview
Often times, you may want the user to provide information on who they are. This could be their social accounts, their email address, or other web3 identities such as Farcaster.
0xPass opens modals that interact with users making it easy to request this information whenever you want.
Link Identities
import { useLink } from "0xpass"
const config = {
provider: "google"
// additional params depending on the provider
}
const { link, isLoading, isSuccess, error } = useLink(config)
// and in the code...
link()
Unlink Identities
import { useLink } from "0xpass"
const config = {
provider: "google"
// additional params depending on the provider
}
const { unlink, isLoading, isSuccess, error } = useUnlink(config)
// and in the code...
unlink()
Supported Providers
- Google (selector - "google")
- Twitter (selector - "twitter")
- Farcaster (sector - "farcaster")