mirror of
https://github.com/hanzoai/passport-github.git
synced 2026-09-23 23:48:07 +00:00
+1
-1
@@ -59,7 +59,7 @@ function Strategy(options, verify) {
|
||||
}
|
||||
|
||||
OAuth2Strategy.call(this, options, verify);
|
||||
this.name = 'github';
|
||||
this.name = options.name || 'github';
|
||||
this._userProfileURL = options.userProfileURL || 'https://api.github.com/user';
|
||||
this._userEmailURL = options.userEmailURL || 'https://api.github.com/user/emails';
|
||||
this._oauth2.useAuthorizationHeaderforGET(true);
|
||||
|
||||
Reference in New Issue
Block a user