-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added send and verify mongoose functions, first iteration
- Loading branch information
1 parent
b790606
commit 0bd996a
Showing
12 changed files
with
94 additions
and
54 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
.env |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
require("dotenv").config(); | ||
|
||
// put tests here | ||
|
||
// const client = require("../index")( | ||
// process.env.SID, | ||
// process.env.AUTH, | ||
// "mongodb://localhost/twofactortest" | ||
// ); | ||
// client | ||
// .create("ian", "+17604207520") | ||
// .then(user => console.log(user)) | ||
// .catch(err => console.log(err)); |
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,20 @@ | ||
require("dotenv").config(); | ||
|
||
// put tests here | ||
|
||
// const client = require("../index")( | ||
// process.env.SID, | ||
// process.env.AUTH, | ||
// "mongodb://localhost/twofactortest" | ||
// ); | ||
// client | ||
// .create("ian", "+17604207520") | ||
// .then(user => { | ||
// client.send("ian"); | ||
// }) | ||
// .catch(err => console.log(err)); | ||
|
||
// client | ||
// .verify("ian", "415408") | ||
// .then(res => console.log(res)) | ||
// .catch(err => console.log(err)); |
Empty file.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"twilio": "^3.33.0" | ||
}, | ||
"devDependencies": { | ||
"dotenv": "^8.0.0", | ||
"jest": "^24.8.0" | ||
} | ||
} |