Skip to content

Commit 87c8a4e

Browse files
authored
Merge pull request #1 from pipobscure/patch-1
use `new OTP()` to be compatible with otp@1.0.0
2 parents f2b188c + 7bcb497 commit 87c8a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (params.method === 'HOTP' && params.counter === null) {
1919
console.log('ERROR: Counter required. HOTP Method selected.\n\n');
2020
cli.getUsage(1);
2121
}
22-
var otp = OTP({
22+
var otp = new OTP({
2323
secret: secret
2424
});
2525

0 commit comments

Comments
 (0)