function getUser(config): null | (User & object);Defined in: account-kit/core/src/actions/getUser.ts:21
Returns the currently logged in user if using an SCA with the AlchemySigner or the connected EOA details.
import { getUser } from "@account-kit/core";
import { config } from "./config";
const user = getUser(config);| Parameter | Type | Description |
|---|---|---|
|
| the account config containing app state |
null | User & object
the user if the signer or an EOA are connected