An module to login users in parse server with phone numbers using Facebook AccountKit.
- 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
- 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 like nano
-
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({
...
auth: {
accountkit: {
module: 'Parse-Server-phone-number-auth',
appSecret: 'YOUR_APP_SECRET'
},
facebook: {
appIds: "FACEBOOK"
}
}
});
- 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.
- Go to this link https://codecanyon.net/item/parse-phone-auth-login-parse-server-users-by-phone-numbers/18759283/
- Soon...
- Soon...
Note. Ww will update this repo as soon possible.