I use a Twitter account to login to bit.ly at the sign in screen.

I've also signed up to use their authentication because I want to use node.js to generate shortened links using the node-bitlyapi module.

The example code asks for a username and password:

var BitlyAPI = require("node-bitlyapi");
var Bitly = new BitlyAPI({
   // both of these values have been retrieved by Registering a Bitly OAuth app.
   client_id: "", 
   client_secret: ""

var username="" // Added Twitter Username;
var password="" // Added Twitter Password;

Bitly.authenticate(username, password, function(err, access_token) {
   // Returns err if there was one, or an access token if here wasn't:

   console.log('err: ' + err);
   console.log('access_token: ' + access_token);

When I run the code above I get the following output which doesn't give me alot to go on since there isn't an error and there isn't an access_token:

err: null
access_token: undefined

This leads me to believe that it isn't authenticating and that I need some other sort of username and password to work with the API.

  • I have another account and it uses just a username and password (not a Twitter or a Facebook login), and it seems to work as expected.
    – leeand00
    Commented Jun 4, 2015 at 12:49

1 Answer 1


I entered my email address in on the site, and requested to reset my password. Then after receiving the email and resetting my password I noticed that I was able to use the email address on the account to login instead of Twitter. When I used my email address and what the password was reset to, I was able to obtain an access token.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.