Skip to content
Alchemy Logo

AuthType

type AuthType =
  | {
  buttonLabel?: string;
  emailMode?: "magicLink" | "otp";
  hideButton?: boolean;
  placeholder?: string;
  type: "email";
}
  | {
  type: "passkey";
}
  | {
  chainType?: ChainType[];
  hideMoreButton?: boolean;
  moreButtonText?: string;
  numFeaturedWallets?: number;
  type: "external_wallets";
  walletConnect?: WalletConnectParameters;
  walletConnectProjectId?: string;
  wallets?: string[];
}
  | object &
  | {
  auth0Connection?: string;
  authProviderId: "auth0";
  displayName: string;
  isCustomProvider?: false;
  logoUrl: string;
  logoUrlDark?: string;
}
  | {
  auth0Connection?: never;
  authProviderId: KnownAuthProvider;
  displayName?: never;
  isCustomProvider?: false;
  logoUrl?: never;
  logoUrlDark?: never;
} & OauthRedirectConfig;

Defined in: account-kit/react/src/components/auth/types.ts:11

{
  buttonLabel?: string;
  emailMode?: "magicLink" | "otp";
  hideButton?: boolean;
  placeholder?: string;
  type: "email";
}
NameTypeDescription

buttonLabel?

string

emailMode?

"magicLink" | "otp"

Deprecated

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

hideButton?

boolean

placeholder?

string

type

"email"

{
  type: "passkey";
}
NameType

type

"passkey"

{
  chainType?: ChainType[];
  hideMoreButton?: boolean;
  moreButtonText?: string;
  numFeaturedWallets?: number;
  type: "external_wallets";
  walletConnect?: WalletConnectParameters;
  walletConnectProjectId?: string;
  wallets?: string[];
}
NameType

chainType?

ChainType[]

hideMoreButton?

boolean

moreButtonText?

string

numFeaturedWallets?

number

type

"external_wallets"

walletConnect?

WalletConnectParameters

walletConnectProjectId?

string

wallets?

string[]

object & | { auth0Connection?: string; authProviderId: "auth0"; displayName: string; isCustomProvider?: false; logoUrl: string; logoUrlDark?: string; } | { auth0Connection?: never; authProviderId: KnownAuthProvider; displayName?: never; isCustomProvider?: false; logoUrl?: never; logoUrlDark?: never; } & OauthRedirectConfig

Was this page helpful?