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.

Signature:

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

Returns:

() => void

  • A function to invoke to logout.