Developer Docs
Search
K

useWalletAuth

Allows you to authenticate a wallet address via signed message with nonce. Wallet authentication is requested and processed by Registry API
React / Next
// Import
import { useWalletAuth } from "@xircus-web3/react"
// Declare
const auth = useWalletAuth()
// or { auth, authenticating } = useWalletAuth()
// Usage
return <button onClick={auth.auth}>{auth.authenticating ? 'Authenticating' : 'Authenticate'}</button>