Skip to main content

Requirements

Passkeys are supported only on iOS 15 and above. Passkey autofill requires iOS 16 and above.

Installation

CocoapodsAdd Authsignal to your Podfile.
pod 'Authsignal', '~> 2.3.0'
Swift Package ManagerAdd the following to the dependencies value of your Package.swift file.
dependencies: [
    .package(
        url: "https://github.com/authsignal/authsignal-ios.git",
        from: "2.3.0"
    )
]

Initialization

Initialize the client with your tenant ID and the API URL for your region.
RegionAPI URL
US (Oregon)https://api.authsignal.com/v1
AU (Sydney)https://au.api.authsignal.com/v1
EU (Ireland)https://eu.api.authsignal.com/v1
CA (Montreal)https://ca.api.authsignal.com/v1
You can find your tenant ID in the Authsignal Portal.
import Authsignal

let authsignal = Authsignal(
    tenantID: "YOUR_TENANT_ID",
    baseURL: "YOUR_REGION_BASE_URL"
)
import com.authsignal.Authsignal

val authsignal = Authsignal(
    tenantID = "YOUR_TENANT_ID",
    baseURL = "YOUR_REGION_BASE_URL",
    activity = this, // An activity-based context param is required only when using passkeys
)
import { Authsignal } from "react-native-authsignal";

const authsignal = new Authsignal({
  tenantID: "YOUR_TENANT_ID",
  baseURL: "YOUR_REGION_BASE_URL",
});
import 'package:authsignal_flutter/authsignal_flutter.dart';

final authsignal = Authsignal("YOUR_TENANT_ID", baseURL: "YOUR_REGION_BASE_URL");

Usage

Passkeys

Push verification

QR code verification

In-app verification

Email OTP

SMS OTP

WhatsApp OTP

Authenticator app

Repositories

iOS

Android

React Native

Flutter