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

    if user && token && @validateUser(user)
      { user: user, token: token }
    else
      storage.removeItem('travis.user')
      storage.removeItem('travis.token')
      null

    @set('user', undefined)

  signIn: ->
    console.log('auth.signIn')
    @set('state', 'signing-in')
    url = "#{@endpoint}/auth/post_message?origin=#{@receivingEnd}"
    $('<iframe id="auth-frame" />').hide().appendTo('body').attr('src', url)

  autoSignIn: ->
    console.log('auth.autoSignIn')
    data = @userDataFrom(Travis.sessionStorage) || @userDataFrom(Travis.storage)
    @setData(data) if data

