Techofficer / express-apple-signin

Example Express.JS app using Sign in with Apple feature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sign in with Apple - Express

This example demonstrates how to use Express to authenticate users using Sign in with Apple. Use this example as a starting point for your own web applications.

Prerequisites

  1. You should be enrolled in Apple Developer Program.
  2. Please have a look at Apple documentation related to "Sign in with Apple" feature.
  3. You should create App ID and Service ID in your Apple Developer Account.
  4. You should generate private key for your Service ID in your Apple Developer Account.

More details about configuration can be found in node-apple-signin repository.

Instructions

To install this example on your computer, clone the repository and install dependencies.

$ git clone git@github.com:Techofficer/express-apple-signin.git
$ cd express-apple-signin
$ npm install

The example uses config file to configure the consumer key and consumer secret needed to access Sign in with Apple REST API. Add the appropriate credentials to config.json file and put private key, associated with your Apple developer account, to project's root directory. Start the server:

node app.js

Open a web browser and navigate to http://localhost:3000/ to see the example in action.

Contributing

Pull requests are welcome.

License

The MIT License

Copyright (c) 2019 Artem Efremov

About

Example Express.JS app using Sign in with Apple feature


Languages

Language:JavaScript 97.4%Language:HTML 2.6%