passageidentity / example-ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passage logo

Example iOS Application

This example iOS app demonstrates the basic integration of the Passage SDK in a Swift iOS application. Before implementing the Passage iOS SDK in your own app, it may be most helpful to get this example app up and running with your own Passage credentials.

Requirements

  • iOS 14+
  • Xcode 14 +
  • An Apple Developer account and Team
  • A Passage account and app
  • A public apple-app-site-association file hosted with your website

Configuration

1. Update app Signing & Capabilities

  • Modify the webcredentials and applinks Associated Domains domains to match the domain where your apple-app-site-association file is hosted
  • Select your development team
  • Modify the bundle id, if needed

NOTE: Your selected development team and bundle id MUST correspond with the application id you provide in your site’s apple-app-site-association file. Learn more about setting up this file here.

Screen Shot 2022-09-11 at 4 28 06 PM

2. Add Passage.plist file

  • Add key appId with the value of your Passage app id
  • Add key authOrigin with the value of your Passage app auth origin url

Screen Shot 2022-09-11 at 4 30 46 PM

3. Run the app! 🚀

If all of the configuration was setup correctly, you should be able to run this application in the simulator or on a real device through Xcode!

About

License:MIT License


Languages

Language:Swift 100.0%