Giter Site home page Giter Site logo

thanhphatsainin / sign-in-with-apple-swift-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getstream/sign-in-with-apple-swift-example

0.0 0.0 0.0 1.83 MB

iOS + Node.js authentication using Sign in with Apple

Ruby 0.46% JavaScript 6.28% Swift 93.26%

sign-in-with-apple-swift-example's Introduction

๏ฃฟ 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!

๐Ÿ”— Helpful Links

๐Ÿ”Ž 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.

sign-in-with-apple-swift-example's People

Contributors

cardoso avatar b-onc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.