iOS SDK

Coming Soon

Official OAuth42 SDK for iOS. Native Swift support for iPhone and iPad applications.

🍎

iOS SDK In Development

We're building a native Swift SDK for iOS with support for the latest iOS features and best practices.

Want to be notified when it's ready? Join our waitlist or reach out to our team.

Planned Features

🔐 Native Authentication

ASWebAuthenticationSession and SFSafariViewController support for seamless OAuth flows.

⚡ Swift Concurrency

Modern async/await APIs with full Swift concurrency support.

🔑 Keychain Integration

Secure token storage using iOS Keychain with biometric protection.

📱 SwiftUI Support

SwiftUI views and modifiers for easy integration in modern iOS apps.

🔄 Token Refresh

Automatic token refresh with background refresh support.

📦 Swift Package Manager

Easy installation via SPM with CocoaPods and Carthage support.

Preview: Expected API

Here's what the iOS SDK API is expected to look like (subject to change):

import OAuth42

// Configure the client
let client = OAuth42Client(
    issuer: "https://api.oauth42.com",
    clientId: "your_client_id",
    redirectURI: "yourapp://callback",
    scopes: ["openid", "profile", "email"]
)

// Start authentication
Task {
    do {
        // Present authentication view
        let tokens = try await client.authenticate(
            presentationAnchor: view.window
        )

        // Tokens are automatically stored in Keychain
        print("Access token: \(tokens.accessToken)")

        // Get user info
        let userInfo = try await client.getUserInfo()
        print("User: \(userInfo.email)")

    } catch {
        print("Authentication failed: \(error)")
    }
}

In the Meantime

While we're working on the native iOS SDK, you can integrate OAuth42 into your iOS app using:

Standard OAuth 2.0 Libraries

Use popular iOS OAuth libraries like AppAuth-iOS with OAuth42's standard endpoints.

View API Documentation →

REST API Integration

Build a custom integration using OAuth42's REST API with URLSession or Alamofire.

Learn About OAuth 2.0 →

Stay Updated

Want to be the first to know when the iOS SDK is released? Get in touch with our team.

Contact Us