def create_authorization_code(self, client, grant_user, request):
    code_challenge = request.data.get('code_challenge')
    code_challenge_method = request.data.get('code_challenge_method')
    return generate_authorization_code(client, grant_user, request, code_challenge=code_challenge, code_challenge_method=code_challenge_method)
def create_authorization_code(self, client, grant_user, request):
    code_challenge = request.data.get('code_challenge')
    code_challenge_method = request.data.get('code_challenge_method')
    return generate_authorization_code(client, grant_user, request, code_challenge=code_challenge, code_challenge_method=code_challenge_method)