Skip to content

fix(miniapp-core): usernameSchema for ENS-style Farcaster names (NEYN-10523)#596

Draft
neynar-chatbot-agent wants to merge 1 commit into
mainfrom
cursor/fix-ens-username-qr-signin-792a
Draft

fix(miniapp-core): usernameSchema for ENS-style Farcaster names (NEYN-10523)#596
neynar-chatbot-agent wants to merge 1 commit into
mainfrom
cursor/fix-ens-username-qr-signin-792a

Conversation

@neynar-chatbot-agent

Copy link
Copy Markdown

Summary

Adds usernameSchema in @farcaster/miniapp-core so sign-in and other flows can validate Farcaster identities that use ENS-style names with dots (for example *.eth and *.base.eth), not only fName-style identifiers.

Details

  • Dotted names reuse the same DOMAIN_REGEX rules as domainSchema, so labels follow normal domain constraints (no .., valid TLD length, etc.).
  • Dotless names keep the usual fName pattern: lowercase letters, digits, and underscore, max 64 characters.

Tests

  • Vitest coverage for fName, alphacaster.eth, alphacaster.base.eth, and invalid cases.

Linear: NEYN-10523

Linear Issue: NEYN-10523

Open in Web Open in Cursor 

Expose a shared Zod schema that accepts fName-style usernames and dotted
ENS names (e.g. *.eth, *.base.eth) using the same label rules as domainSchema.
Add tests for alphacaster.base.eth and related cases (NEYN-10523).
@changeset-bot

changeset-bot Bot commented Apr 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0fc2fe0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Apr 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
miniapps-docs Ready Ready Preview, Comment Apr 20, 2026 7:25pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants