Authentication guidance from Base App
Save authentication that requires an interaction for interactions that require it (e.g., buying something, viewing personalized pages).
Base App natively supports SIWF in-app, enabling social identity without leaving the app. Quick Auth can issue a JWT to persist session state.User Experience in Base App:
- Create Account Users (new Farcaster accounts created during Base App onboarding): Users see a “Login request” tray with the SIWF message and can sign it directly with their passkey
- Connect Account Users (existing Farcaster accounts connected during onboarding): Users are prompted to deeplink to Farcaster one-time only to register their wallet as an auth address, then enjoy seamless in-app sign-in thereafter
Implementation Example
App.tsx
For a complete example of using Quick Auth with MiniKit, see here.
Best practices
- Gate wallet only at the point of onchain action
- Prefer SIWF/Quick Auth for low‑friction identity
- Use context for analytics; avoid using it as primary auth
- Handle Base App’s different authentication flows gracefully
- Always use cryptographic verification for security-critical operations