We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8e86a8 commit b633f7cCopy full SHA for b633f7c
extensions/GitHubAuth/lib/Client.pm
@@ -95,10 +95,12 @@ sub get_access_token {
95
96
sub get_user_emails {
97
my ($self, $access_token) = @_;
98
- my $uri = URI->new(GH_USER_EMAILS_URI);
99
- $uri->query_form(access_token => $access_token);
100
101
- my $response = $self->user_agent->get($uri, Accept => 'application/json');
+ my $response = $self->user_agent->get(
+ GH_USER_EMAILS_URI,
+ Accept => 'application/json',
102
+ Authorization => 'token ' . $access_token
103
+ );
104
105
return $self->_handle_response($response);
106
}
0 commit comments