API reference
Components
Functions
component
SignInThe
SignIn component renders a full app-native sign-in form. It drives the Flow Execution API loop automatically: initiating the flow, presenting the server-defined inputs and actions on each step, and completing when the user is authenticated. SignIn requires .thunderIDProvider(config:) in its ancestor view hierarchy.Parameters
applicationIdrequiredStringThe Application ID from your ThunderID application settings. Identifies which sign-in flow to execute.
onCompleteoptional(() -> Void)?Called when authentication completes successfully.
onErroroptional((String) -> Void)?Called with an error message when a flow step fails.
Example
import SwiftUI
import ThunderIDSwiftUI
struct AuthView: View {
var body: some View {
SignIn(applicationId: "<your-application-id>")
.padding()
}
}Get started
Provider, session, and a protected route, start to finish.
Connect your application
Getting started / Connect your application / iOS
The quickstart is maintained alongside the rest of the getting-started guides so it stays in step with the platform. This page covers the package itself.
Guides
Task-focused walkthroughs maintained alongside the SDK.