Skip to content

Commit

Permalink
Merge pull request #112 from badgateway/doc-fixes
Browse files Browse the repository at this point in the history
Doc fixes.
  • Loading branch information
evert authored Jul 21, 2023
2 parents 674630d + d2f111f commit d245092
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const client = new OAuth2Client({
clientId: '...',

// OAuth2 client secret. Only required for 'client_credentials', 'password'
// flows. You should not specify this for authorization_code.
// flows. Don't specify this in insecure contexts, such as a browser using
// the authorization_code flow.
clientSecret: '...',


Expand Down Expand Up @@ -239,7 +240,7 @@ const fetchWrapper = new OAuth2Fetch({
return client.clientCredentials();

// Another example
return client.authorizationCode({
return client.authorizationCode.getToken({
code: '..',
redirectUri: '..',
});
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

2.2.2 (????-??-??)
------------------

* #111 Some documentation fixes.


2.2.1 (2023-07-07)
------------------

Expand Down

0 comments on commit d245092

Please sign in to comment.