Skip to content

Commit

Permalink
Merge pull request #1 from pipobscure/patch-1
Browse files Browse the repository at this point in the history
use `new OTP()` to be compatible with otp@1.0.0
  • Loading branch information
phenixcoder authored Oct 4, 2021
2 parents f2b188c + 7bcb497 commit 87c8a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (params.method === 'HOTP' && params.counter === null) {
console.log('ERROR: Counter required. HOTP Method selected.\n\n');
cli.getUsage(1);
}
var otp = OTP({
var otp = new OTP({
secret: secret
});

Expand Down

0 comments on commit 87c8a4e

Please sign in to comment.