RORK LABJP
BUILD — Rork Max runs real Macs in the cloud loaded with Xcode and the iOS SDK, writing SwiftUI, compiling, reading the errors and building again. That loop, not the code generation, is what lifts the outputNATIVE — What comes out is pure Swift and SwiftUI, not React Native. Reaching AR, Metal graphics and widgets that React Native cannot touch is the real gap between this and other buildersPLATFORMS — Coverage spans iPhone, iPad, Apple Watch, Apple TV and Vision Pro, plus iMessage. Worth a look if you want to start from a watch app or an extension rather than a phone screenCOMPANION — The Rork Companion app lets you check a generated build on a real iPhone without a paid Apple Developer account, lowering the bar for trying a first project end to endPRICING — Free to start, paid plans from $25 a month, and Rork Max on the $200 Max plan. Worth working out up front how many projects it takes to earn that backDEADLINE — From August 31, 2026, Google Play requires target API level 36 or higher for new apps and updates alike. Ten days out, and the targetSdkVersion of what you generate is yours to verifyBUILD — Rork Max runs real Macs in the cloud loaded with Xcode and the iOS SDK, writing SwiftUI, compiling, reading the errors and building again. That loop, not the code generation, is what lifts the outputNATIVE — What comes out is pure Swift and SwiftUI, not React Native. Reaching AR, Metal graphics and widgets that React Native cannot touch is the real gap between this and other buildersPLATFORMS — Coverage spans iPhone, iPad, Apple Watch, Apple TV and Vision Pro, plus iMessage. Worth a look if you want to start from a watch app or an extension rather than a phone screenCOMPANION — The Rork Companion app lets you check a generated build on a real iPhone without a paid Apple Developer account, lowering the bar for trying a first project end to endPRICING — Free to start, paid plans from $25 a month, and Rork Max on the $200 Max plan. Worth working out up front how many projects it takes to earn that backDEADLINE — From August 31, 2026, Google Play requires target API level 36 or higher for new apps and updates alike. Ten days out, and the targetSdkVersion of what you generate is yours to verify
Articles/App Dev
App Dev/2026-07-02Advanced

Logins Without Stored Passwords: Adding Passkey Authentication to a Rork Max App

How to add passkey authentication to a Swift app generated by Rork Max: Associated Domains setup, WebAuthn server verification with working code, and the device-testing pitfalls that cost me half a day.

Rork Max233Passkeys2WebAuthnAuthenticationServicesSwift48Authentication8

Premium Article

For a while, the single most common message in my app's support inbox was some variation of "I forgot my password." Not bug reports — people locked out of their own accounts. As an indie developer, that kind of quiet operational cost adds up week after week.

Since switching to passkeys, those messages have all but disappeared. Users authenticate with Face ID, and my server no longer stores the one secret whose leak would be catastrophic. This is the process I followed to add passkey authentication to a Swift app generated by Rork Max, including the places where I got stuck.

What passkeys change, and what they don't

Passkeys are built on WebAuthn public-key authentication. The device generates a private key and hands the server only the public half. At sign-in, the server issues a challenge, the device signs it, and the server verifies the signature with the stored public key. Because there is no shared secret sitting on both sides, a server breach doesn't leak credentials. The private key syncs through iCloud Keychain, so it survives a phone upgrade.

What doesn't change: you still need a server. Issuing challenges, verifying signatures, and storing public keys are server-side jobs, and a "client-only passkey" is not a thing. Rork Max generates the native Swift client for you, but half of this article is necessarily about the backend.

Passkeys also play a different role from "sign in with someone else's account." Federated login delegates identity to Apple; passkeys keep your own account system and simply remove the password from it. I covered the federated side in implementing Sign in with Apple server verification and account deletion, and running both side by side is a perfectly reasonable design.

The foundation: Associated Domains and the AASA file

A passkey is bound to a domain, and the app and server must agree on which one. That binding is Associated Domains. I remember it as a three-part set:

  1. Give the app an Associated Domains entry of webcredentials:example.com
  2. Serve an AASA file at https://example.com/.well-known/apple-app-site-association
  3. List your App ID (TeamID.BundleID) inside that file

The AASA file is just this:

{
  "webcredentials": {
    "apps": ["YOUR_TEAM_ID.com.example.yourapp"]
  }
}

The delivery requirements are quietly strict, and I lost half a day here. It must be served over HTTPS with no redirects, with Content-Type: application/json, directly under /.well-known/, and with no file extension.

With Rork Max you never open Xcode, so the Associated Domains entry has to be requested in your generation prompt: ask explicitly for webcredentials on your domain, then confirm it landed in the entitlements before moving on. The lesson from Core NFC applies unchanged here — when a capability is involved, correct generated code still fails silently on device if the signing configuration is missing.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
A setup checklist that gets webcredentials and apple-app-site-association working on the first try
Both registration and sign-in flows carried end to end with working Swift and Node.js (@simplewebauthn/server) code
How to isolate error 1004 (RP ID mismatch), AASA caching, and the other traps that only appear on a real device
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

App Dev2026-07-05
Rork Max (Swift) or the Standard Version (React Native): How to Decide as a Solo Developer
Stuck between Rork Max's native Swift and the standard React Native version? Here is a practical decision framework built from a solo developer's perspective, weighing cost, feature boundaries, and how easy each path is to migrate later.
App Dev2026-07-03
Making Your Rork Max App Resilient to Dropped and Restored Connections: Offline Detection and Retry with NWPathMonitor
Build networking that survives a lost signal in your Rork Max native Swift app with NWPathMonitor. Detect offline states, respect Low Data Mode and cellular, and auto-resend queued work on reconnect — all with working Swift code.
App Dev2026-07-03
Keeping Downloads Alive After Your Rork Max App Is Killed: Background URLSession Design and Relaunch Handling
How to design downloads in a Rork Max native Swift app so transfers continue in the OS daemon even after the app is suspended or terminated. Covers relaunch wiring, resumeData recovery, and measured isDiscretionary behavior with working code.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →