You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed the code in the test.js a little bit to include client_id and secret_key. Here's the code:
#!/usr/bin/env node
conststdin=process.stdin,stdout=process.stdout,client_id='<client_id>',secret_key='<secret_key>';varYubikey=require('./lib/yubikey');varyubikey=newYubikey(client_id,secret_key);functionverify(otp){yubikey.verify(otp,function(err){if(err){stdout.write(err+"\n");}else{stdout.write("Success! Your token was verified.\n");}process.exit(0);});}functionreadOTP(){stdin.resume();stdout.write("YubiKey OTP: ");stdin.once('data',function(buf){verify(buf.toString().trim());});}if(!module.parent){readOTP();}
I keep getting the error
Error: The OTP is invalid.
any idea what I'm doing wrong?
thanks
The text was updated successfully, but these errors were encountered:
I changed the code in the
test.js
a little bit to includeclient_id
andsecret_key
. Here's the code:I keep getting the error
any idea what I'm doing wrong?
thanks
The text was updated successfully, but these errors were encountered: