Autoconnect the last previously connected wallet.
import { useAutoConnect } from "thirdweb/react"; const { data: autoConnected, isLoading } = useAutoConnect({ client, accountAbstraction, wallets, onConnect, timeout,});
function useAutoConnect( props: AutoConnectProps,): UseQueryResult<boolean, Error>;
The props for auto connect.
let props: { accountAbstraction?: SmartWalletOptions; appMetadata?: AppMetadata; client: ThirdwebClient; onConnect?: (wallet: Wallet) => void; timeout?: number; wallets?: Array<Wallet>;};
let returnType: UseQueryResult<boolean, Error>;
whether the auto connect was successful.