Skip to content

getUser

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

Import

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

Usage

import { AlchemyWebSigner } from "@account-kit/signer";
 
const signer = new AlchemyWebSigner({
  client: {
    connection: {
      rpcUrl: "/api/rpc",
    },
    iframeConfig: {
      iframeContainerId: "alchemy-signer-iframe-container",
    },
  },
});
 
const 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