Skip to content

Added important note about optimism for auth addresses #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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