Files

OATHSample

SwiftUI authenticator app demonstrating OATH/TOTP functionality with YubiKit.

Overview

This sample app shows how to:

  • Connect to YubiKeys via NFC, USB-C, and Lightning
  • Read TOTP/HOTP codes from the YubiKey
  • Handle connection lifecycle in a reactive UI
  • Display device information

Documentation

For a detailed walkthrough of this sample, see the OATHSample documentation.

Build and Run

Open OATHSample.xcodeproj in Xcode and run on a physical device (for NFC support) or macOS.