useUser
A React hook that returns the current user information, either from an External Owned Account (EOA) or from the client store. It uses the Alchemy account context and synchronizes with external store updates.
Import
import { useUser } from "@account-kit/react";
Usage
import { useUser } from "@account-kit/react";
const user = useUser();
Returns
UseUserResult
The user information, including address, orgId, userId, and type. If the user is not connected, it returns null.