🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

bitbucket-auth-token

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-auth-token - npm Package Compare versions

Comparing version

to
0.0.4

@@ -9,3 +9,3 @@ var homeDir = require('home-dir');

// appName, consumerKey, consumerSecret, credentialsProvider, forceCredentials
// appName, consumerKey, consumerSecret, credentialsProvider, forceCredentials, domain
var configPath = homeDir("/." + opts.appName);

@@ -18,6 +18,7 @@ var config;

}
opts = _.extend({}, opts, {
opts = _.extend({}, {
configPath: configPath,
config: config
});
config: config,
domain: "bitbucket.org"
}, opts);

@@ -61,3 +62,3 @@ if (config.refreshToken && !opts.forceCredentials) {

request
.post('https://bitbucket.org/site/oauth2/access_token')
.post('https://' + opts.domain + '/site/oauth2/access_token')
.auth(opts.consumerKey, opts.consumerSecret)

@@ -64,0 +65,0 @@ .accept('application/json')

{
"name": "bitbucket-auth-token",
"version": "0.0.3",
"version": "0.0.4",
"description": "Maintain a local cache of Bitbucket OAuth tokens for use with the Bitbucket REST API.",

@@ -5,0 +5,0 @@ "main": "index.js",