options = Rails.env.development? ? {provider_ignores_state: true} : {}

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :clever, Clever::CLIENT_ID, Clever::CLIENT_SECRET, options
end

OmniAuth.config.logger = Rails.logger

options = Rails.env.production? ? {} : {provider_ignores_state: true}

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :clever, Clever::CLIENT_ID, Clever::CLIENT_SECRET, options
end

OmniAuth.config.logger = Rails.logger

Add in ignoring state to staging
Add in ignoring state to staging
