def _create_code_challenge(code_verifier):
    '\n    Adapted from https://github.com/openstack/deb-python-oauth2client/blob/master/oauth2client/_pkce.py.\n    :param str code_verifier: represents a code verifier generated by generate_code_verifier()\n    :return str: urlsafe base64-encoded sha256 hash digest\n    '
    code_challenge = _hashlib.sha256(code_verifier.encode(_utf_8)).digest()
    code_challenge = _base64.urlsafe_b64encode(code_challenge).decode(_utf_8)
    code_challenge = code_challenge.replace('=', '')
    return code_challenge
Adapted from https://github.com/openstack/deb-python-oauth2client/blob/master/oauth2client/_pkce.py.
:param str code_verifier: represents a code verifier generated by generate_code_verifier()
:return str: urlsafe base64-encoded sha256 hash digest
def _create_code_challenge(code_verifier):
    '\n    Adapted from https://github.com/openstack/deb-python-oauth2client/blob/master/oauth2client/_pkce.py.\n    :param str code_verifier: represents a code verifier generated by generate_code_verifier()\n    :return str: urlsafe base64-encoded sha256 hash digest\n    '
    code_challenge = _hashlib.sha256(code_verifier.encode(_utf_8)).digest()
    code_challenge = _base64.urlsafe_b64encode(code_challenge).decode(_utf_8)
    code_challenge = code_challenge.replace('=', )
    return code_challenge