# @farcaster/auth-kit + Vite

AuthKit is a React library that lets users log in to your app with a Farcaster account.

## Run this demo:

```bash
git clone https://github.com/farcasterxyz/auth-monorepo.git &&
cd auth-monorepo/examples/frontend-only &&
yarn install &&
yarn dev
```

Click the "Sign in with Farcaster" button above, then scan the QR code to sign in.

### How does it work?

It uses the [Sign In With Farcaster](https://docs.neynar.com/farcaster/auth-kit#sign-in-with-farcaster-siwf) standard under the hood, which is conceptually like “Sign in with Google”. When integrated, AuthKit will:

1. Show a “Sign in with Farcaster” button to the user.
2. Wait for the user to click, scan a QR code and approve the request in Farcaster.
3. Receive and verify a signature from Farcaster.
4. Show the logged in user’s profile picture and username.
