-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
otp varification completed with authy
- Loading branch information
1 parent
8ee60a1
commit 4b57df3
Showing
15 changed files
with
968 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ let ifRegistered = (user)=>{ | |
|
||
} | ||
else | ||
resolve(data);console.log(); | ||
resolve(user);console.log(); | ||
} | ||
}); | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.