Provides cryptographically secure user authentication using Sign In with Farcaster (SIWF). Returns verified user identity and signature for secure operations.
Returns
AuthenticatedUser | null
Authenticated user object with verified identity, or null if not authenticated.
() => Promise<AuthenticatedUser | null>
Function to trigger the authentication flow. Returns verified user data on success.
Context vs Authentication
Use the right tool for the job:components/SecurityExample.tsx
useAuthenticate provides cryptographic proof of user identity. Always verify signatures server-side for security-critical operations. Use useMiniKit context only for UX hints and analytics.