clerk-swift

Implement Clerk authentication in native Swift and iOS apps using ClerkKit and ClerkKitUI.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/paramcodes/autobro --skill clerk-swift-paramcodes
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clerk-swift
Source: https://github.com/paramcodes/autobro/tree/main/.agents/skills/clerk-swift
Command: npx skills add https://github.com/paramcodes/autobro --skill clerk-swift-paramcodes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Adding authentication to a native iOS app requires correctly wiring Clerk's Swift packages, choosing between prebuilt UI components and custom flows, and satisfying quickstart prerequisites like associated domains and Sign in with Apple capabilities. This Skill guides that implementation by reading the installed clerk-ios package source so the result mirrors current ClerkKit and ClerkKitUI behavior. ## Core Features & Use Cases - Prebuilt Auth Flow: Integrates ClerkKitUI's AuthView in a sheet with UserButton signed-out entry for the fastest setup. - Custom Auth Flow: Builds API-driven sign-in/sign-up flows with ClerkKit while keeping step progression and layout close to AuthView defaults. - Environment & Quickstart Compliance: Calls the /v1/environment endpoint, audits the official iOS quickstart, and applies missing capabilities such as associated domains (webcredentials) and Sign in with Apple. - Use Case: A developer with an Xcode SwiftUI project asks to add Clerk login. The Skill confirms prebuilt vs custom flow, collects the publishable key, installs clerk-ios with an up-to-next-major requirement, verifies quickstart prerequisites, and implements the chosen flow. ## Quick Start Add Clerk authentication to my native iOS SwiftUI app using the prebuilt AuthView flow with my publishable key.

Frequently Asked Questions about clerk-swift

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Clerk authentication to a native iOS Swift app?▼

Install the clerk-ios Swift package with ClerkKit and ClerkKitUI, configure Clerk with your publishable key, and present AuthView in a sheet for the prebuilt flow. For custom flows, use ClerkKit primitives while mirroring AuthView step progression.

Should I use ClerkKitUI prebuilt views or a custom ClerkKit flow on iOS?▼

Use the prebuilt flow with AuthView and UserButton for the fastest standard implementation. Choose the custom flow when you need full control over the UI, but keep step sequencing and layout close to AuthView defaults unless a different UX is explicitly required.

Can I use ClerkKit for Expo or React Native projects?▼

No, this approach is only for native Swift and iOS projects identified by .xcodeproj, .xcworkspace, or Package.swift files. Expo and React Native projects should use the general Clerk setup flow instead.

Why does Clerk iOS sign-in with Apple fail after setup?▼

Apple sign-in fails when the Sign in with Apple capability is missing or the environment does not have Apple enabled. Check the /v1/environment response and add the Apple capability in Xcode if it is enabled for your Clerk instance.

What associated domain does Clerk iOS require?▼

Clerk iOS requires an Associated Domains entry of webcredentials:{YOUR_FRONTEND_API_URL} in the app's entitlements. This comes from the quickstart's Add associated domain capability step and must be added before finishing the implementation.