1.0.2 • Published 8 years ago

Parse-Server-phone-number-auth v1.0.2

Weekly downloads
13
License
EPL-1.0
Repository
github
Last release
8 years ago

Parse-Server-phone-number-auth

An module to login users in parse server with phone numbers using Facebook AccountKit.

Install (Server Inside)

  1. Open tour SSH client and enter your credentials
  2. Go to your Parse-server-exemple folder and run eg. $ cd /home/demo/parse-server-exemple
  3. $ npm install -S Parse-Server-phone-number-auth

Setup (Server Inside)

  1. Go to your Parse Server Example index.js file eg. $ cd /home/demo/parse-server-exemple
  2. Edit index.js file like this eg. $ vi index.js or you can edit with your favorite editor

  3. Edit the index.js file in parse-server-example and configure ParseServer with oauth, you can find this in parse server docs https://github.com/ParsePlatform/parse-server/wiki/OAuth

    Make sure to setup the accountkit oauth when starting your parse server:

var api = new ParseServer({
    ...
    oauth: {
        accountkit: {
            module: 'Parse-Server-phone-number-auth',
            appSecret: 'YOUR_APP_SECRET'
        },
        facebook: {
            appIds: "FACEBOOK"
        }
    }
});

Get YOUR_APP_SECRET (Facebook AccountKit Web site)

  1. Go to https://developers.facebook.com/ if you not have an Developer Account register one then go to the next step if you already have one, then just go to the next step
  2. Select your facebook app in developer dashboard then go to "Account Kit" Section eg. https://developers.facebook.com/apps/XXXXXXXX/account-kit/ (XXXXXXXX is your Facebook App ID)
  3. Click on SHOW AccountKit Secret, copy and paste in step 6.

Android inside

  1. Go to...

iOS inside

  1. Go to...

Web inside

  1. Go to...

Note. Ww will update this repo as soon possible.