Skip to content

Authsignal iOS SDK for authenticating with passkeys, push, email OTP, SMS OTP and Authenticator App (TOTP)

License

Notifications You must be signed in to change notification settings

authsignal/authsignal-ios

Repository files navigation

Authsignal iOS

Check out our official iOS documentation.

Installation

Cocoapods

Add Authsignal to your Podfile:

pod 'Authsignal', '~> 1.0.10'

Swift Package Manager

Add authsignal-ios to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/authsignal/authsignal-ios.git", from: "1.0.10")
]

Initialization

import Authsignal
...

let authsignal = Authsignal(clientID: "YOUR_TENANT_ID", baseURL: "YOUR_REGION_BASE_URL")

You can find your client or tenant ID in the Authsignal Portal.

You must specify the correct base URL for your tenant's region.

Region Base URL
US (Oregon) https://api.authsignal.com/v1
AU (Sydney) https://au.api.authsignal.com/v1
EU (Dublin) https://eu.api.authsignal.com/v1

Usage

Passkeys

For more detailed info on how add passkeys to your app using Authsignal, check out our official passkey documentation for iOS.

Push auth

To see how to add push authentication to your app using Authsignal, see our official push documentation for iOS.