Authorization
Enforce that users must sign in with their wallet using auth after connecting their wallet.
Requires the authConfig prop to be set on the ThirdWebProvider component.
| Auth Prop Option | Type | Default Value | Options | Description | 
|---|---|---|---|---|
| loginOptional | boolean | false | trueorfalse | Allow users to skip signing in with their wallet. | 
| onLogin | function | N/A | N/A | Callback function that is called when a user signs in with their wallet. | 
| onLogout | function | N/A | N/A | Callback function that is called when a user signs out of their wallet. | 
import { ConnectWallet } from "@thirdweb-dev/react";
function App() {
  return (
    <ConnectWallet
      auth={{
        loginOptional: false,
      }}
    />
  );
}