File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,11 @@ $ curl -u <username> https://api.github.com/user
3939
4040### Via OAuth Tokens
4141
42- Alternatively, you can authenticate using [ personal access
43- tokens] [ personal-access-tokens ] or OAuth tokens. To do so, provide the token as
44- the username and provide a blank password or a password of ` x-oauth-basic ` . If
45- you're accessing the API via cURL, replace ` <token> ` with your OAuth token in
46- the following command:
42+ Alternatively, you can use [ personal access
43+ tokens] [ personal-access-tokens ] or OAuth tokens instead of your password.
4744
4845<pre class =' terminal ' >
49- $ curl -u < ; token > ; :x-oauth-basic https://api.github.com/user
46+ $ curl -u < ; username > ; :& lt ; token & gt ; https://api.github.com/user
5047</pre >
5148
5249This approach is useful if your tools only support Basic Authentication but you
You can’t perform that action at this time.
0 commit comments