class Doorkeeper::OAuth::PreAuthorization

def validate_code_challenge_method

def validate_code_challenge_method
  return true unless Doorkeeper.config.access_grant_model.pkce_supported?
  code_challenge.blank? ||
    (code_challenge_method.present? && Doorkeeper.config.pkce_code_challenge_methods_supported.include?(code_challenge_method))
end