Docs

useAutoConnect

Autoconnect the last previously connected wallet.

Example

import { useAutoConnect } from "thirdweb/react";
const { data: autoConnected, isLoading } = useAutoConnect({
client,
accountAbstraction,
wallets,
onConnect,
timeout,
});

Parameters

Returns

whether the auto connect was successful.