Skip to main content


Hook for signing out of a wallet after a user has logged in using auth.

import { useLogout } from "@thirdweb-dev/react";


Call the logout function to have the user sign out.

The isLoading boolean can be used to display a loading state on the UI while the user is signing out.

import { useLogout } from "@thirdweb-dev/react";

function App() {
const { logout, isLoading } = useLogout();

return (
<button onClick={() => logout()}>
{isLoading ? "Logging out..." : "Logout"}