Skip to content

Commit 19a3cf4

Browse files
committed
Merge pull request github#765 from github/update-1430853472
2 parents a27f7f9 + 561ecb7 commit 19a3cf4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

content/v3/auth.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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 &lt;token&gt;:x-oauth-basic https://api.github.com/user
46+
$ curl -u &lt;username&gt;:&lt;token&gt; https://api.github.com/user
5047
</pre>
5148

5249
This approach is useful if your tools only support Basic Authentication but you

0 commit comments

Comments
 (0)