From f2764d5809db03731d03329a66c2a8230917542a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Tue, 22 Dec 2020 18:09:51 +0100 Subject: [PATCH] Update auth part in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1319148f2..576c760a6 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