Skip to content

maakcode/keychain-verification-code-example

Repository files navigation

Keychain Verification Code

  1. Run server and ngrok.
  2. Set any password and sign in.
  3. Save password in Keychain.
  4. Press 'Connect OTP' button.
  5. Select the password.
Keychain Verification Code with Autofill Keychain Verification Code in Passwords

Installation

This example needs ngrok and Ruby 3.1.3 (using rbenv recommended)

  1. Install packages using Bundler
make install
  1. Setup project with Makefile.
make setup
  1. Input your Apple Developer Team ID for Apple App Site Association. (You can find it from https://developer.apple.com/account/#!/membership/)

  2. Run Ngrok. It bridges between your localhost and the Apple server.

ngrok http 4567
  1. Run Sinatra. (Local API Server)
ruby api.rb
  1. Open the .xcworkspace file and build project. It automatically matches the host name to the running ngrok's forwarding host.

  2. If you have Xcode error about entitlements, please clean up your build folder.