       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

  setupErrorReporting()
  syncAuth()
  checkForAfterSignUpAction()

  # 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
analyticsHooks = require('../../lib/analytics_hooks.coffee')
mediator = require('../../../desktop/lib/mediator.coffee')

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