rename requestToken to getToken
This commit is contained in:
parent
171f9b673a
commit
7f2f7e1e4b
2 changed files with 3 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ gulp.task('lint', function() {
|
|||
});
|
||||
|
||||
return gulp.src([
|
||||
'index.js',
|
||||
'lib/*.js',
|
||||
'test/*.js'
|
||||
]).pipe(lint)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue