Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Node library for validating Yubico One Time Passwords (OTPs) based on the validation protocol version 2.0.
Node library for validating Yubico One Time Passwords (OTPs) based on the validation protocol version 2.0.
npm install yubico
Create a new instance of the Yubico object and call verify()
or verify_multi()
method.
var yubico = new Yubico(client_id, api_key, use_https)
Parameters:
client_id
- client idkey
- API key (optional)use_https
true to use https (defaults to true
)Response message HMAC signature is only verified if an API key is provided so you are encouraged to provide it.
You can get both client_id and the api key at https://upgrade.yubico.com/getapikey/.
yubico.verify(otp_token, timeout, callback)
Parameters:
otp
- token generated by the Yubikeytimeout
- connection timeout in seconds (defaults to 15 seconds)callback
- a callback which is called with an error as the first argument if the Yubikey validation fails and true
as the second one if the provided token is valid.yubico.verify_multi(otp_list, max_time_window, timeout, callback)
otp_list
- an array of Yubikey tokens. Tokens are validated in the provided order so the order matters (tokens must be provided in the same order as they were generated)max_time_window
- how many seconds can pass between the first token and the last token generation so that the result is still considered valid (defaults to 5 seconds)timeout
- connection timeout in seconds (defaults to 15 seconds)callback
- a callback which is called with an error as the first argument if the Yubikey validation fails and true
as the second one if the provided token is valid.Example is located in example/example.js
.
node example/example.js single client_id [secret_key|null] otp
node example/example.js multi client_id [secret_key|null] otp_1 otp_2
02.02.2010 - v0.1.2:
31.12.2010 - v0.1.1:
28.12.2010 - v0.1.0:
FAQs
Node library for validating Yubico One Time Passwords (OTPs) based on the validation protocol version 2.0.
The npm package yubico receives a total of 0 weekly downloads. As such, yubico popularity was classified as not popular.
We found that yubico demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.