rename requestToken to getToken

This commit is contained in:
Todd Treece 2015-07-27 17:53:17 -04:00
parent 171f9b673a
commit 7f2f7e1e4b
2 changed files with 3 additions and 2 deletions

View file

@ -23,6 +23,7 @@ gulp.task('lint', function() {
});
return gulp.src([
'index.js',
'lib/*.js',
'test/*.js'
]).pipe(lint)

View file

@ -33,7 +33,7 @@ proto.token_endpoint = 'authorization/v2/token';
/***************************** AUTH *******************************/
proto.authenticate = function(cb) {
this.requestToken()
this.getToken()
.then(function(args) {
cb.apply(this, args);
})
@ -44,7 +44,7 @@ proto.authenticate = function(cb) {
};
proto.requestToken = function() {
proto.getToken = function() {
var self = this;