Function codeVerifier

Generates a plaintext random string of len characters, optionally using a seed.

The client creates a code verifier for each authorization request by generating a random string using the characters [A-Z] / [a-z] / [0-9] / - / . / _ / ~ with a minimum length of 43 characters and maximum length of 128 characters. This value is stored on the client and will be used in the authorization code exchange step later.

TIP: setting a seed can be useful in tests.

  • Parameters

    • config: Config

    Returns string