Skip to content

Commit

Permalink
Merge pull request #30 from two-factor/zep/postgresVerify
Browse files Browse the repository at this point in the history
Zep/postgres verify
  • Loading branch information
iangeckeler authored Jul 8, 2019
2 parents 028b18a + 2b5e65e commit 510f720
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 9 deletions.
12 changes: 12 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const Client = require("./index")('AC307f83011f4e85c3b80560128a3ada18', '5e6536e39b68aab14033e0b2cc8b8274');


console.log("client is", Client);

Client.create("zepvalue", "+13474953775")
.then(user => console.log(user))
.catch(err => console.log(err));

Client.verify("ian")
.then(user => console.log(user))
.catch(err => console.log(err));
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions __tests__/functions/databases/mongoose/verify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe('', () => {

}
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions __tests__/functions/databases/postgresql/verify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe('', () => {

}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ const send = require("./functions/send.js");
const verify = require("./functions/verify.js");

// import mongoose functions
const mongooseCreate = require("./mongoose/create");
const mongooseSend = require("./mongoose/send");
const mongooseVerify = require("./mongoose/verify");
const userSchema = require("./mongoose/userSchema");
const mongooseCreate = require("./functions/databases/mongoose/create");
const mongooseSend = require("./functions/databases/mongoose/send");
const mongooseVerify = require("./functions/databases/mongoose/verify");
const userSchema = require("./functions/databases/mongoose/userSchema");

//import postgres functions
const generatePool = require("./postgres/configure");
const createTable = require("./postgres/createtable");
const postgresCreate = require("./postgres/create");
const postgresSend = require("./postgres/send");
const postgresVerify = require("./postgres/verify");
const generatePool = require("./functions/databases/postgres/configure");
const createTable = require("./functions/databases/postgres/createtable");
const postgresCreate = require("./functions/databases/postgres/create");
const postgresSend = require("./functions/databases/postgres/send");
const postgresVerify = require("./functions/databases/postgres/verify");

const connect = (AccSID, AuthToken, mongoURI = null) => {
return new Client(AccSID, AuthToken, mongoURI);
Expand Down

0 comments on commit 510f720

Please sign in to comment.