diff --git a/README.md b/README.md index 503023391..aad7cc558 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,10 @@ Access the library in Ruby: ```ruby # Provide authentication credentials -client = Octokit::Client.new(:login => 'defunkt', :password => 'c0d3b4ssssss!') +client = Octokit::Client.new(:access_token => 'personal_access_token') -# Set access_token instead of login and password if you use personal access token -# client = Octokit::Client.new(:access_token => '[personal_access_token]!') +# You can still use the username/password syntax by replacing the password value with your PAT. +# client = Octokit::Client.new(:login => 'defunkt', :password => 'personal_access_token') # Fetch the current user client.user