useLogout is a React Hook that allows you to logout from the current session.
useLogout
const { execute, loading } = useLogout(); Copy
const { execute, loading } = useLogout();
const { execute: logout } = useLogout();return <button onClick={logout}>Logout</button>; Copy
const { execute: logout } = useLogout();return <button onClick={logout}>Logout</button>;
useLogout
is a React Hook that allows you to logout from the current session.