nl_tokens: Strategy constructor .
pl_tokens: function Strategy ( options , verify ) { options = options || { } ; options . authorizationURL = options . authorizationURL || 'https://bitbucket.org/site/oauth2/authorize' ; options . tokenURL = options . tokenURL || 'https://bitbucket.org/site/oauth2/access_token' ; options . customHeaders = options . customHeaders || { } ; if ( ! options . customHeaders [ 'User-Agent' ] ) { options . customHeaders [ 'User-Agent' ] = options . userAgent || 'passport-bitbucket' ; //HACK: requests need to fall back to Basic Auth (for access_token call) options . customHeaders . Authorization = 'Basic ' + new <mask> ( options . clientID + ':' + options . clientSecret ) . toString ( 'base64' ) ; } OAuth2Strategy . call ( this , options , verify ) ; this . name = 'bitbucket' ; this . _userProfileURL = options . userProfileURL || 'https://api.bitbucket.org/2.0/user' ; this . _oauth2 . useAuthorizationHeaderforGET ( true ) ; }