Bug OAuth2 - Public flow - grant is always invalid

There is a bug in this version
S

stromb0li

Guest
I am trying to follow OAuth2 public flow and I seem to always receive back provided_code_verifier_does_not_match_code_challenge when trying to obtain an access token.

Here's my code in generating the verify and challenge (it's in dart):
Code:

Code:
  // Generate a random code verifier
  String _generateCodeVerifier() {
    final random = Random.secure();
    final values = List<int>.generate(32, (i) => random.nextInt(256));
    return base64Url.encode(values).replaceAll('=', '');
  }

  //...

Read more

Continue reading...