Sign In With Apple Swift Example Save

iOS + Node.js authentication using Sign in with Apple

Project README

īŖŋ Sign in with Apple Example App

📚 Tutorial

This repository contains the completed iOS and Node.js projects following the Adding Sign in with Apple to your iOS App tutorial. You should read it before trying to run this project as it contains it may contain useful information not present in this README.

ℹī¸ About this repository

This repository is built on top of this iMessage Clone repository. By cloning that repository and following the tutorial, you will arrive at a similar state to this one.

⚙ī¸ Setup

Configuration

You should place your Stream Chat and Apple Developer credentials in backend/index.js. Make sure to also change the IP address in iMessageClone/Authentication.swift with the IP and port where the backend is running.

For more information on the Apple Developer credentials you need and how to get them, see the SETUP.md for apple-auth.

Dependencies

Dependencies are included, but if you need to make any changes, use CocoaPods in the root folder:

$ pod install --repo-update

And for the backend, use Yarn or NPM in the backend folder:

$ yarn install

or

$ npm install

Running

Backend

To run the backend, you need Node.js 10+, and execute the command node index.js in the backend folder.

iOS

To run the iOS project, you need Xcode 11+ and a real iOS 13 device signed in with an Apple ID and Two-Factor Authentication enabled. Sign in with Apple does not work on simulators!

🔎 Troubleshooting

AKAuthenticationError 7026

You forgot to add the Sign in with Apple capability.

ASAuthorizationAppleIDProvider.getCredentialState fails with .notFound.

Sign in with Apple won't work on a simulator. You must use a real device.

Open Source Agenda is not affiliated with "Sign In With Apple Swift Example" Project. README Source: GetStream/sign-in-with-apple-swift-example
Stars
28
Open Issues
5
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating