 
   _loginSuccessful: (data) ->
     if @_loginWindow then @_loginWindow.close()
-    alert("Welcome #{data.name}")
     @authCallback true
 
   _checkLogin: ->

  renderAuthorizationDialog: ->
    (DocumentStoreAuthorizationDialog {provider: @, authCallback: @authCallback})

module.exports = DocumentStoreProvider


authorizeUrl  = "http://document-store.herokuapp.com/user/authenticate"
checkLoginUrl = "http://document-store.herokuapp.com/user/info"
listUrl = "http://document-store.herokuapp.com/document/all"

tr = require '../utils/translate'
isString = require '../utils/is-string'
