Skip to content

Commit d26b7fe

Browse files
committed
Use HTTP Authentication header for GitHub.authenticate, fixes #156.
1 parent cfe6b07 commit d26b7fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/utils/auth.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ end
5151
# API Methods #
5252
###############
5353

54-
@api_default function authenticate(api::GitHubAPI, token::AbstractString; params = Dict(), options...)
54+
@api_default function authenticate(api::GitHubAPI, token::AbstractString; options...)
5555
auth = OAuth2(token)
56-
params["access_token"] = auth.token
57-
gh_get(api, "/"; params = params, options...)
56+
gh_get(api, "/"; auth = auth, options...)
5857
return auth
5958
end
6059

0 commit comments

Comments
 (0)