Skip to content

Commit

Permalink
Merge pull request #1314 from curquiza/update-readme
Browse files Browse the repository at this point in the history
Update auth part in README
  • Loading branch information
Heather Harvey authored Apr 19, 2021
2 parents f639176 + 3b2741d commit 2254f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2254f0f

Please sign in to comment.