           , 30000)
 
         onRemoteReady = (remoteConfig)->
+          data = remoteConfig.data
+
+          if data.headers && data.headers['Hull-User-Id']
+            app.core.currentUser = {
+              id:   data.headers['Hull-User-Id'],
+              sig:  data.headers['Hull-User-Sig']
+            }
+
           window.clearTimeout(timeout)
-          data = remoteConfig.data
           app.config.assetsUrl            = remoteConfig.assetsUrl
           app.config.services             = remoteConfig.services
           app.config.widgets.sources.hull = remoteConfig.baseUrl + '/widgets'

  (app) ->

    models = {}

    rpc = false
    rawFetch = null

            $.cookie(cookieName, val, path: "/")
            if currentUserId != headers['Hull-User-Id']
              app.core.currentUser = {
                id:   headers['Hull-User-Id'],
                sig:  headers['Hull-User-Sig']
              }
              app.core.mediator.emit('hull.currentUser', app.core.currentUser)
          else
            $.removeCookie(cookieName, path: "/")
            app.core.currentUser = false
            app.core.mediator.emit('hull.currentUser', app.core.currentUser) if currentUserId

          app.sandbox.config ?= {}
          app.sandbox.config.curentUser = app.core.currentUser




        #
