getUser

1function 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.

Example

1import { getUser } from "@account-kit/core";
2import { config } from "./config";
3
4const user = getUser(config);

Parameters

ParameterTypeDescription

config

AlchemyAccountsConfig

the account config containing app state

Returns

null | User & object

the user if the signer or an EOA are connected