API Documentation
/
Frontend
/
iOS
/
Hawcx iOS SDK with Smart Connect

Hawcx iOS SDK with Smart Connect

Revolutionary next-generation passwordless authentication powered by Hawcx Smart Connect technology

Overview

Hawcx SDK delivers revolutionary Smart Connect technology - the most intuitive passwordless authentication ever created for iOS applications. Smart Connect intelligently handles both sign up and sign in through a single, unified interface, eliminating decision fatigue while maintaining enterprise-grade security.

Smart Connect Technology

One-click intelligent authentication that automatically determines user context

Contextual Intelligence

No more "Sign Up" vs "Sign In" confusion - just one smart entry point

Seamless Cross-Platform

Smart Connect maintains user context across all devices and platforms

Web Login Approval

Allow users to approve web logins from their mobile device

Enterprise-Grade Security

Revolutionary security with consumer-grade simplicity

Architecture

Loading diagram...

Quick Start

dependencies: [
    .package(url: "https://github.com/hawcx/hawcx_ios_sdk", .upToNextMajor(from: "4.0.0"))
]

Or add it directly in Xcode:

  1. Select File > Add Packages...
  2. Enter the package URL: https://github.com/hawcx/hawcx_ios_sdk
  3. Select "Up to Next Major Version" with version "4.0.0"
  4. Click "Add Package"
  1. Download the latest HawcxFramework.xcframework
  2. Drag into your Xcode project
  3. Set "Embed & Sign" in target settings
import HawcxFramework

// Initialize with your project API key
let hawcxSDK = HawcxSDK(projectApiKey: "YOUR_API_KEY")

Core Features

Troubleshooting

Error Codes

Error CodeDescription
networkErrorNetwork connectivity issue or request timeout
unknownErrorUnexpected error occurred
invalidInputInvalid email or userid format
keychainSaveFailedFailed to save data to iOS Keychain
clientCryptoErrorCryptographic operation failed on device
fingerprintErrorFailed to generate device fingerprint
authInitFailedAuthentication initialization failed
otpVerificationFailedInvalid or expired OTP
deviceVerificationFailedDevice registration verification failed
cipherVerificationFailedLogin cipher verification failed
internalStateErrorSDK internal state corruption
missingDeviceTokenSessionSession token missing during flow
missingEr1r2ForRegistrationCryptographic keys missing
missingCryptoForLoginDevice keys not found for login
missingPersistentDeviceTokenDevice token not found
Error CodeDescription
invalidPin7-digit PIN is invalid or expired
failedApproveWeb login approval failed
networkErrorNetwork connectivity issue
unknownErrorUnexpected error during web login

Support