AuthCard

1function AuthCard(props): Element;

Defined in: account-kit/react/src/components/auth/card/index.tsx:46

React component containing an Auth view with configured auth methods and options based on the config passed to the AlchemyAccountProvider

Example

1import { AuthCard, useAlchemyAccountContext } from "@account-kit/react";
2
3function ComponentWithAuthCard() {
4 // assumes you've passed in a UI config to the Account Provider
5 // you can also directly set the properties on the AuthCard component
6 const { uiConfig } = useAlchemyAccountContext();
7
8 return <AuthCard {...uiConfig!.auth} />;
9}

Parameters

ParameterTypeDescription

props

AuthCardProps

Card Props

Returns

Element

a react component containing the AuthCard