Flexible Authentication: Reimagining authentication for millions of users at Airbnb
Airbnb rebuilt login and signup around an "Identify first then Challenge" model. Users first identify themselves by email, phone or social login, then a server-side policy engine picks the challenge most likely to succeed for that account and context, such as WhatsApp OTP in Brazil or Naver in South Korea. Every screen includes a server-ranked "Try another way" Challenge Picker, so users never hit a dead end. The whole flow is server-driven, with clients acting as thin renderers built on generated types. That design cut client code by 60% and the web bundle by 100KB, enabled 20+ experiments in three months without app releases, raised successful authentication by 2.6%, reduced duplicate accounts by 27% and lowered OTP costs by about 11%.
Related posts
- Supporting Passkeys in Shop's Authentication Flows
Shopify Engineering mediumAdeptShop added passkeys (WebAuthn public-key credentials) to Shop Pay and the Shop app as a phishing-resistant alternative to email/SMS verification codes, using the webauthn-ruby gem in their Rails backend and serving the flow from an iframe so it works on merchant storefronts. Registration uses options_for_create to generate a server-stored challenge, then verify_registration to validate and store the credential; login uses verify_authentication and updates the sign count. Lessons include restricting subdomain use, requesting platform authenticators with resident keys, and storing and deleting challenges to prevent replay. Conditional UI is held back because the no-passkey desktop experience can confuse users.
- Stop Mocking Auth (It’s Breaking Your Tests)
Neon mediumAdept
Mocking authentication in tests hides real failures: password hashing and verification, UNIQUE-constraint enforcement under concurrent signups, session handling, and SQL joins between auth and application data. Neon Auth stores users, sessions and tokens in a neon_auth Postgres schema, so a copy-on-write database branch (created in about a second) also branches auth with its own isolated Auth URL. A GitHub Actions workflow can create a branch per pull request, run tests against real auth and data, then delete the branch, giving isolation without mocks or shared staging databases.
- A sandbox doesn't constrain an API Key: What Polsia learned running autonomous companies on Render
Render easyNovice
Polsia, a solo-built platform where AI agents run businesses (outreach, ads, support, engineering) on nightly loops, shared production lessons in a talk at Render's localhost event. Sandboxing an agent does not narrow its credentials: a Postmark key meant for sending email let an agent rename the main server and change webhooks, so keys must be scoped to the task. Open-ended agent loops sometimes stopped before committing or deploying, so Polsia made those steps deterministic checkpoints and left model judgment for ambiguous work. After roughly $2M monthly Anthropic bills, it also routed routine steps to cheaper models and standardized on a stack of Render, GitHub, Neon and MCP tools.
- Securing your Flutter apps with Multi-Factor Authentication
Supabase mediumAdeptA Flutter app can require TOTP-based multi-factor authentication on top of email/password sign-in using Supabase Auth. The walkthrough covers setting up supabase_flutter and go_router, configuring iOS and Android deep links for email confirmation callbacks, and building signup, enrollment and login-verification pages. Enrollment calls mfa.enroll() to get a QR code and secret, then runs mfa.challenge() and mfa.verify() with the 6-digit code and refreshes the session. Login follows signInWithPassword() with a verification step before the user can reach protected content.
- How Meta enables de-identified authentication at scale
Meta Engineering mediumAdeptMeta's Anonymous Credential Service (ACS) authenticates clients without user IDs by splitting authentication into token issuance over an authenticated channel and unlinkable token redemption over an anonymous channel, built on VOPRFs and blind signatures with an HMAC over business data keyed by a shared secret. ACS is a multitenant C++ Thrift service on Twine that isolates use cases with per-use-case keys and rotates them routinely. It serves hundreds of thousands of requests per second for WhatsApp's de-identified telemetry. Scaling lessons include configurable credential reuse limits backed by a ZippyDB counter to cut capacity costs, dithering plus a global rate limiter to absorb synchronized nightly client spikes, and self-service onboarding with Android/iOS SDKs so teams need no cryptography expertise.