Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/auth-kit/client/app/verify-sign-in-message.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ Verify a Sign In With Farcaster message. Your app should call this function and
Returns the parsed Sign in With Farcaster message, the user's fid, and whether the verification succeeded.

```ts
import { createAppClient, viemConnector } from "@farcaster/auth-client"

const appClient = createAppClient({
relay: "https://relay.farcaster.xyz",
ethereum: viemConnector({
// to handle verifying of Auth Addresses, rpc URLs must be Optimism only!
rpcUrls: [
"https://mainnet.optimism.io",
"https://1rpc.io/op",
"https://optimism-rpc.publicnode.com",
"https://optimism.drpc.org",
],
})
})

const { data, success, fid } = await appClient.verifySignInMessage({
nonce: 'abcd1234',
domain: 'example.com',
Expand Down