Skip to main content
This guide covers how to use the Prelude mobile SDKs to authenticate users on iOS, Android, Flutter, and React Native. The mobile SDKs persist tokens in the platform’s secure store and bind them to the device with DPoP. Pick your platform once: tabs across this section stay in sync.

Prerequisites

Before you start, make sure you have:
  • Xcode 15 or later, targeting iOS 15 or later
A custom domain is optional on iOS. The SDK is reachable at the per-application Prelude subdomain (https://{app_id}.session.prelude.dev).

Install the SDK

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.
PreludeAuthClient is a Sendable value type — copies share a single underlying actor, so it’s safe to pass through @State, @Environment, or task groups.
Create a new SwiftUI app in Xcode, add the PreludeAuth package above, then replace ContentView.swift with:
ContentView.swift
Build and run on the iOS simulator. If the SDK initialized cleanly, you’re ready to wire up a login flow.

Helpers

No additional helpers are required — the iOS examples on subsequent pages can be used as-is.