Skip to main content
Use MiniKit.walletAuth() to authenticate a user with Sign-In with Ethereum inside World App. This is the recommended authentication flow for mini apps.

Basic Usage

Generate the nonce on your backend. The nonce must be alphanumeric and at least 8 characters.

Result

Backend Verification

Always verify the returned SIWE payload on your backend.

Options

Notes

  • Use MiniKit.user.walletAddress after successful auth if you need cached user state
  • Use MiniKit.getUserByAddress() or MiniKit.getUserByUsername() to resolve username and profile metadata
  • Do not use World ID verification as a login substitute

Error Codes

Fallback Behavior

Define a custom fallback in the command payload for support outside mini apps.

Preview