Skip to content

Commit

Permalink
otp varification completed with authy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChauhanAbhinav committed Aug 13, 2019
1 parent 8ee60a1 commit 4b57df3
Show file tree
Hide file tree
Showing 15 changed files with 968 additions and 39 deletions.
24 changes: 24 additions & 0 deletions server/config/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const cfg = {};

// HTTP Port to run our web application
cfg.port = process.env.PORT || 3000;

// Your Twilio account SID and auth token, both found at:
// https://www.twilio.com/user/account
//
// A good practice is to store these string values as system environment
// variables, and load them from there as we are doing below. Alternately,
// you could hard code these values here as strings.
cfg.accountSid = 'AC8d4d80c5a703e77240a37b2d40880402';
cfg.authToken = 'e016dc46aea0e551e8eb2546eca8b042';

// A Twilio number you control - choose one from:
// https://www.twilio.com/user/account/phone-numbers/incoming
// Specify in E.164 format, e.g. "+16519998877"
cfg.twilioNumber = +19384440727;

// Your Authy production key - this can be found on the dashboard for your
// Authy application
cfg.authyKey = 'a72OEVsZ9QZVtjBo9HMahhFFbKHeDMa1';

module.exports = cfg;
2 changes: 1 addition & 1 deletion server/db/services/user.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let ifRegistered = (user)=>{

}
else
resolve(data);console.log();
resolve(user);console.log();
}
});

Expand Down
1 change: 1 addition & 0 deletions server/node_modules/authy/.jshintignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions server/node_modules/authy/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

167 changes: 167 additions & 0 deletions server/node_modules/authy/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4b57df3

Please sign in to comment.