Skip to content

Commit

Permalink
Edit docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MananGandhi1810 committed Jul 27, 2024
1 parent 10d46dd commit 19199a3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Install with:
### How To Use

```javascript
const otp = require('otp-mgr');
const OtpMgr = require("otp-mgr");

const otp = new OtpMgr();

const Purpose = {
Register: 1,
Expand All @@ -31,9 +33,9 @@ const Purpose = {
};

const users = [
{ id: 1, email: 'john@gmail.com' },
{ id: 2, email: 'jane@gmail.com' },
{ id: 3, email: 'charles@gmail.com' },
{ id: 1, email: "john@gmail.com" },
{ id: 2, email: "jane@gmail.com" },
{ id: 3, email: "charles@gmail.com" },
];

const otpForJohnLogin = otp.generate(users[0].id, Purpose.Login);
Expand Down

0 comments on commit 19199a3

Please sign in to comment.