Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jozzhart committed Mar 1, 2013
1 parent c6bac12 commit d118535
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/passport-youtube/strategy.js
Expand Up @@ -24,36 +24,13 @@ function Strategy(options, verify) {
OAuth2Strategy.call(this, options, verify);
this.name = 'youtube';
this._profileURL = options.profileURL || 'https://gdata.youtube.com/feeds/api/users/default?alt=json';
this._profileFields = options.profileFields || null;
}

/**
* Inherit from `OAuth2Strategy`.
*/
util.inherits(Strategy, OAuth2Strategy);

/**
* Return extra Facebook-specific parameters to be included in the authorization
* request.
*
* Options:
* - `display` Display mode to render dialog, { `page`, `popup`, `touch` }.
*
* @param {Object} options
* @return {Object}
* @api protected
*/
Strategy.prototype.authorizationParams = function (options) {
var params = {},
display = options.display;

if (display) {
params['display'] = display;
}

return params;
};

/**
* Retrieve user profile from Youtube.
*
Expand Down

0 comments on commit d118535

Please sign in to comment.