Alchemy Logo

CreateAccountParams

type CreateAccountParams =
  | {
      email: string;
      emailMode?: EmailType;
      expirationSeconds?: number;
      redirectParams?: URLSearchParams;
      type: "email";
    }
  | {
      phone: string;
      type: "sms";
    }
  | {
      creationOpts?: CredentialCreationOptionOverrides;
      email: string;
      type: "passkey";
    }
  | {
      creationOpts?: CredentialCreationOptionOverrides;
      type: "passkey";
      username: string;
    }
  | {
      accountId?: string;
      publicKey: string;
      type: "accessKey";
    };

Defined in: account-kit/signer/src/client/types.ts:41

{
  email: string;
  emailMode?: EmailType;
  expirationSeconds?: number;
  redirectParams?: URLSearchParams;
  type: "email";
}
NameTypeDescription

email

string

emailMode?

EmailType

Deprecated

This option will be overriden by dashboard settings. Please use the dashboard settings instead. This option will be removed in a future release.

expirationSeconds?

number

redirectParams?

URLSearchParams

type

"email"

{
  phone: string;
  type: "sms";
}
NameType

phone

string

type

"sms"

{
  creationOpts?: CredentialCreationOptionOverrides;
  email: string;
  type: "passkey";
}
NameType

creationOpts?

CredentialCreationOptionOverrides

email

string

type

"passkey"

{
  creationOpts?: CredentialCreationOptionOverrides;
  type: "passkey";
  username: string;
}
NameType

creationOpts?

CredentialCreationOptionOverrides

type

"passkey"

username

string

{
  accountId?: string;
  publicKey: string;
  type: "accessKey";
}
NameType

accountId?

string

publicKey

string

type

"accessKey"

Was this page helpful?