@@ -46,7 +46,7 @@ the programming language of your choice to create the code verifier, calculate
4646the hash, and perform Base64 encoding to generate the code challenge.
4747
4848When creating the code verifier, only use unreserved characters, including
49- uppercase and lowercase letters (A-Z , a-z), decimal digits (0-9), hyphen (-),
49+ uppercase and lowercase letters (A-Z, a-z), decimal digits (0-9), hyphen (-),
5050period (.), underscore (\_ ), and tilde (~ ), with a minimum length of 43
5151characters and a maximum length of 128 characters.
5252
@@ -67,6 +67,7 @@ function base64URLEncode(str) {
6767// create sha256 hash from code verifier
6868function sha256 (buffer ) {
6969 return crypto .createHash (' sha256' ).update (buffer).digest (` base64` );
70+ }
7071
7172// create a random code verifier
7273var code_verifier = base64URLEncode (crypto .randomBytes (32 ));
@@ -130,7 +131,7 @@ value previously) parameters.
130131
131132- The ` code ` parameter contains an authorization code that the app can
132133 exchange for an access token from the authorization server. Most backend
133- server languages have standard ways to access query parameters as decomposed
134+ server languages have standard ways to access query parameters as decoded
134135 objects. You'll need to obtain the ` code ` parameter and use it to exchange
135136 for access tokens.
136137
0 commit comments