@lens-protocol/react
Version:
Interacting with the Lens Protocol API using React.
22 lines (21 loc) • 458 B
TypeScript
import { UseDeferredTask } from "../helpers/tasks.js";
/**
* `useLogout` is a React Hook that allows you to logout from the current session.
*
* @example
* ```tsx
* const { execute, loading } = useLogout();
* ```
*
* ## Usage
*
* ```tsx
* const { execute: logout } = useLogout();
*
* return <button onClick={logout}>Logout</button>;
* ```
*
* @category Authentication
* @group Hooks
*/
export declare function useLogout(): UseDeferredTask;