<%-
  settings = {
    apiUrl: application_base_url,
    csrfToken: form_authenticity_token
  }
  if signed_in?
    settings[:userId] = current_user.id
    settings[:email] = current_user.email
    settings[:displayName] = current_user.display_name
    settings[:oauth_consumer_key] = params[:oauth_consumer_key]
  end
%>
<script type="text/javascript">
  window.DEFAULT_SETTINGS = <%= settings.to_json.html_safe %>;
  window.DEFAULT_JWT = '<%= signed_in? ? jwt_token : "" %>';
</script>
<%-
  settings = {
    apiUrl: application_base_url,
    csrfToken: form_authenticity_token
  }
  if signed_in?
    settings[:userId] = current_user.id
    settings[:email] = current_user.email
    settings[:displayName] = current_user.display_name
    settings[:oauthConsumerKey] = params[:oauth_consumer_key]
  end
%>
<script type="text/javascript">
  window.DEFAULT_SETTINGS = <%= settings.to_json.html_safe %>;
  window.DEFAULT_JWT = '<%= signed_in? ? jwt_token : "" %>';
</script>
Use consistent case for settings
Use consistent case for settings
