       e.preventDefault()
 
     webContents.on 'did-get-redirect-request', (e, oldURL, newURL) ->
+      win.hide()
+      showNotify("Authenticating...") if oldURL is "https://github.com/session"
       if newURL.match("accessToken")
         token = url.parse(newURL, true).query.accessToken
         userId = url.parse(newURL, true).query.userId

    win.setMenuBarVisibility(false)
    win.setTitle('Welcome to the Commit.Live')

    webContents.on 'did-finish-load', -> win.show()

    webContents.on 'close', ->
      webContents = null
      win = null


localStorage = require './local-storage'
{commitLive, commitLiveApi} = require './config'
{BrowserWindow} = require 'remote'
{Notification} = require 'atom'

confirmOauthToken = (token,userId) ->
  headers = new Headers(
