   setupErrorReporting()
   syncAuth()
   checkForAfterSignUpAction()
+  mediator.on('auth:logout', logoutEventHandler)
 
   # Setup jQuery plugins
   require 'jquery-on-infinite-scroll'

Sentry = require("@sentry/browser")
globalReactModules = require('../../../desktop/lib/global_react_modules.tsx')
hydrateStitch = require('@artsy/stitch/dist/internal/hydrate').hydrate

module.exports = ->
  # Add the Gravity XAPP or access token to all ajax requests

      else
        $loginSignupBanner.css('display', 'block')
        $mainNav.css('position', 'relative')

logoutEventHandler = ->
  $.ajax
    url: '/users/sign_out'
    type: 'DELETE'
    success: ->
      analyticsHooks.trigger 'auth:logged-out'
      window.location.reload()
    error: (xhr, status, errorMessage) ->
      # TODO: Error message handling
