Skip to main content

iOS

Official

Native Swift SDK with hosted login and secure token storage.

API reference

Every export is fully typed. The signatures and props below come from the package's own reference documentation, so what is listed here is what the installed version ships.

Components
Functions
componentSignIn

The

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
applicationIdrequired
String

The 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

Open in docs

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.

Accessing Protected APIs

Make authenticated API requests from an iOS application using bearer tokens from the ThunderID SDK.

3 min read

Try the iOS Sample App

Run the ThunderID iOS sample app to see the full authentication lifecycle end to end.

2 min read
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© Copyright Linux Foundation Europe.For web site terms of use, trademark policy and other project policies please see https://linuxfoundation.eu/en/policies.