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 cfe6b07 commit d26b7feCopy full SHA for d26b7fe
src/utils/auth.jl
@@ -51,10 +51,9 @@ end
51
# API Methods #
52
###############
53
54
-@api_default function authenticate(api::GitHubAPI, token::AbstractString; params = Dict(), options...)
+@api_default function authenticate(api::GitHubAPI, token::AbstractString; options...)
55
auth = OAuth2(token)
56
- params["access_token"] = auth.token
57
- gh_get(api, "/"; params = params, options...)
+ gh_get(api, "/"; auth = auth, options...)
58
return auth
59
end
60
0 commit comments