Skip to content

Commit

Permalink
Improve comments.
Browse files Browse the repository at this point in the history
No need to mention the authorization code grant. If you are using this method, you know you are using this grant.

Also made it clear what the difference is in the first comment between the two similarly named methods.
  • Loading branch information
mooreds committed Nov 5, 2020
1 parent ea09c68 commit 309f7ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/api/exchangeOAuthCodeForAccessToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"uri": "/oauth2/token",
"comments": [
"Exchanges an OAuth authorization code for an access token.",
"If you will be using the Authorization Code grant, you will make a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token."
"Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token."
],
"method": "post",
"methodName": "exchangeOAuthCodeForAccessToken",
Expand Down Expand Up @@ -53,4 +53,4 @@
"javaType": "String"
}
]
}
}
4 changes: 2 additions & 2 deletions src/main/api/exchangeOAuthCodeForAccessTokenUsingPKCE.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"uri": "/oauth2/token",
"comments": [
"Exchanges an OAuth authorization code for an access token.",
"If using the Authorization Code grant, you will make a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint and a code_verifier for an access token."
"Exchanges an OAuth authorization code and code_verifier for an access token.",
"Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint and a code_verifier for an access token."
],
"method": "post",
"methodName": "exchangeOAuthCodeForAccessTokenUsingPKCE",
Expand Down

0 comments on commit 309f7ec

Please sign in to comment.