Parse-Server-phone-number-auth
v1.0.2
Published
An module to login users in parse server with phone numbers using Facebook AccountKit.
Downloads
30
Maintainers
Readme
Parse-Server-phone-number-auth
An module to login users in parse server with phone numbers using Facebook AccountKit.
Install (Server Inside)
- Open tour SSH client and enter your credentials
- Go to your Parse-server-exemple folder and run eg. $ cd /home/demo/parse-server-exemple
- $ npm install -S Parse-Server-phone-number-auth
Setup (Server Inside)
Go to your Parse Server Example index.js file eg. $ cd /home/demo/parse-server-exemple
Edit index.js file like this eg. $ vi index.js or you can edit with your favorite editor
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)
- 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
- 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)
- Click on SHOW AccountKit Secret, copy and paste in step 6.
Android inside
- Go to...
iOS inside
- Go to...
Web inside
- Go to...
Note. Ww will update this repo as soon possible.