Skip to main content

useLogout() function

This feature is currently in beta and may change based on feedback that we receive.

Hook to logout the connected wallet from the backend. The backend logout URL must be configured on the ThirdwebProvider.


export declare function useLogout(): () => void;


() => void

  • A function to invoke to logout.