     path
 
   receiveMessage: (event) ->
-    console.log('auth.receiveMessage')
     if event.origin == @expectedOrigin()
       if event.data == 'redirect'
         window.location = "#{@endpoint}/auth/handshake?redirect_uri=#{location}"

      false

  setData: (data) ->
    console.log('auth.setData')
    @storeData(data, Travis.sessionStorage)
    @storeData(data, Travis.storage) unless @userDataFrom(Travis.storage)
    @set('user', @loadUser(data.user))

    window.addEventListener('message', (e) => @receiveMessage(e))

  signOut: ->
    Travis.storage.removeItem('travis.locale')
    Travis.storage.removeItem('travis.user')
    Travis.storage.removeItem('travis.token')
