Prerequisites
Before you start, make sure you have:- A Prelude account with access to the Auth API — contact us to obtain access
- An Application ID (
appID) — see Applications - An authentication method configured — see Password Authentication or OTP Login
- iOS
- Android
- Flutter
- React Native
- Xcode 15 or later, targeting iOS 15 or later
https://{app_id}.session.prelude.dev).Install the SDK
- iOS
- Android
- Flutter
- React Native
Add the Prelude Apple Auth SDK to your Xcode project as a Swift Package dependency:In
Package.swift:Initialize the SDK
Create a session client pointing at your application’s domain.- iOS
- Android
- Flutter
- React Native
PreludeAuthClient is a Sendable value type — copies share a single underlying actor, so it’s safe to pass through @State, @Environment, or task groups.Try it
Try it
- iOS
- Android
- Flutter
- React Native
Create a new SwiftUI app in Xcode, add the Build and run on the iOS simulator. If the SDK initialized cleanly, you’re ready to wire up a login flow.
PreludeAuth package above, then replace ContentView.swift with:ContentView.swift
Helpers
- iOS
- Android
- Flutter
- React Native
No additional helpers are required — the iOS examples on subsequent pages can be used as-is.