         win.destroy()
         githubLogin().then(resolve)
 
-    if not win.loadURL("#{config.learnCo}/ide/sign_in?ide_onboard=true")
+    if not win.loadURL("#{learnCo}/ide/sign_in?ide_onboard=true")
       win.destroy()
       githubLogin.then(resolve)
-
-promptManualEntry = ->
-  oauthPrompt = document.createElement 'div'
-  oauthPrompt.setAttribute 'style', 'width:100%; text-align: center;'
-
-  oauthLabel = document.createElement 'div'
-  oauthLabel.setAttribute 'style', 'margin-top: 12px; font-weight: bold; font-size: 12px;'
-  oauthLabel.appendChild document.createTextNode 'Please enter your Learn OAuth Token'
-  tokenLinkDiv = document.createElement 'div'
-  tokenText = document.createTextNode 'Get your token here: '
-  tokenLink = document.createElement 'a'
-  tokenLink.title = "#{config.learnCo}/ide/token"
-  tokenLink.href = "#{config.learnCo}/ide/token"
-  tokenLink.setAttribute 'style', 'text-decoration: underline;'
-  tokenLink.appendChild document.createTextNode "#{config.learnCo}/ide/token"
-  tokenLinkDiv.appendChild tokenText
-  tokenLinkDiv.appendChild tokenLink
-  oauthPrompt.appendChild oauthLabel
-  oauthLabel.appendChild tokenLinkDiv
-
-  invalidLabel = document.createElement 'label'
-  invalidLabel.setAttribute 'style', 'opacity: 0;'
-  invalidLabel.appendChild document.createTextNode 'Invalid token. Please try again.'
-  oauthPrompt.appendChild invalidLabel
-  input = document.createElement 'input'
-  input.setAttribute 'style', 'width: 100%; text-align: center;'
-  input.classList.add 'native-key-bindings'
-  oauthPrompt.appendChild input
-
-  panel = atom.workspace.addModalPanel item: oauthPrompt
-  input.focus()
-
-  input.addEventListener 'keypress', (e) =>
-    if e.which is 13
-      token = input.value.trim()
-      confirmOauthToken(token).then (res) ->
-        if res
-          _token.set(token)
-          panel.destroy()
-          atom.commands.dispatch(workspaceView, 'learn-ide:toggle-terminal')
-          return true
-        else
-          invalidLabel.setAttribute 'style', 'color: red; opacity: 100;'
 
 githubLogout = ->
   win = new BrowserWindow(show: false)

        win.destroy()
        resolve()

    if not win.loadURL("#{config.learnCo}/ide/token?ide_config=true")
      promptManualEntry()

learnSignIn = () ->
  new Promise (resolve, reject) ->


    # hide window immediately after login
    webContents.on 'will-navigate', (e, url) ->
      win.hide() if url.match("#{learnCo}/users/auth/github/callback")

    webContents.on 'did-get-redirect-request', (e, oldURL, newURL) ->
      return unless newURL.match(/ide_token/)
