Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Node Library for Authenticating with ExactTarget Fuel. Used for authenticating REST and SOAP APIs.
This library allows users to create authentication clients for ExactTarget APIs.
This is a new library and requires extensive testing. Feel free to test it out and submit issues as they are found.
new FuelAuth( options )
Object
options
Object
options.force
Boolean
false
callback( error, data )
Function
null
if no errortrue
if token is not expired and it exists. false
if token is expired or it doesn't exist.var FuelAuth = require( 'fuel-auth' );
// Required Settings
var myClientId = 'yourClientId';
var myClientSecret = 'yourClientSecret';
// Minimal Initialization
var FuelAuthClient = new FuelAuth({
clientId: myClientId // required
, clientSecret: myClientSecret // required
});
// Initialization with extra options
var authUrl = "https://auth.exacttargetapis.com/v1/requestToken"; //this is the default
var accessToken = "";
var refreshToken = "";
var FuelAuthClient = new FuelAuth({
clientId: myClientId // required
, clientSecret: myClientSecret // required
, authUrl: authUrl
, accessToken: accessToken
, refreshToken: refreshToken
});
var options = {
// whatever request options you want
// See https://github.com/mikeal/request#requestoptions-callback
// I want to force a request
force: true
};
FuelAuthClient.getAccessToken( options, function( err, data ) {
if( !!err ) {
console.log( err );
return;
}
// data.accessToken = your token
// data.expiresIn = how long until token expiration
console.log( data );
});
// OR don't pass any options
FuelAuthClient.getAccessToken( function( err, data ) {
if( !!err ) {
console.log( err );
return;
}
// data.accessToken = your token
// data.expiresIn = how long until token expiration
console.log( data );
});
In alphabetical order
fuel-auth
FAQs
Node library for authenticating REST and SOAP APIs in the Salesforce Marketing Cloud (formerly ExactTarget).
The npm package fuel-auth receives a total of 3,189 weekly downloads. As such, fuel-auth popularity was classified as popular.
We found that fuel-auth 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.