Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Authy.com API wrapper for Node.js
You can install this module from Github, but can be unstable:
git clone https://github.com/fvdm/nodejs-authy
npm install ./nodejs-authy
Or from the NPM registry, which is always the latest stable release:
npm install authy-node
You need to signup at Authy and create an app in your Dashboard. Once done take note of the two different app tokens. The one on the left is for real production use, the other on the right is only for safe testing.
var authy = require('authy-node')
authy.api.mode = 'sandbox'
authy.api.token = 'abc123def456'
When you switch to production make sure to set api.mode
to production
and api.token
to your production token!
Each method requires a callback function, like this:
function myCallback( err, res ) {
if( err ) {
console.log( err )
console.log( err.stack )
} else {
console.log( res )
}
}
In case of an error: err
is an instance of Error
, sometimes with additional properties to help with tracing the problem. res
is null
.
When everything is good: err
is null and res
is an object
with the API's response.
Register a new user to your app.
email user's email address
phone user's cellphone number
country user's country code for cell
authy.register( 'user@example.net', '0612345789', 31, myCallback )
Delete a user from your app.
userId user's Authy ID, from .register()
authy.delete( 123, myCallback )
Verify an authentication token your app received from the user.
userId user's Authy ID, from .register()
token user's token, from Authy or SMS
force force verification
Normal:
authy.verify( 123, '01234567', myCallback )
With force:
authy.verify( 123, '01234567', true, myCallback )
Send authentication token by SMS.
userId user's Authy ID, from .register()
force send SMS even when user has smartphone.
Normal:
authy.sms( 123, myCallback )
With force:
authy.sms( 123, true, myCallback )
Get basic information about your API token.
authy.app.details( myCallback )
Get monthly statistics about your API token.
authy.app.stats( myCallback )
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to http://unlicense.org
FAQs
Authy API wrapper
The npm package authy-node receives a total of 0 weekly downloads. As such, authy-node popularity was classified as not popular.
We found that authy-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.