getUser

Unauthenticated call to look up a user’s organizationId by email

Import

1import { BaseAlchemySigner } from "@account-kit/signer";

Usage

1import { AlchemyWebSigner } from "@account-kit/signer";
2
3const signer = new AlchemyWebSigner({
4 client: {
5 connection: {
6 rpcUrl: "/api/rpc",
7 },
8 iframeConfig: {
9 iframeContainerId: "alchemy-signer-iframe-container",
10 },
11 },
12});
13
14const result = await signer.getUser("[email protected]");

Parameters

email

string the email to lookup

Returns

Promise<{orgId: string}> the organization id for the user if they exist