         user: user
         password: password
         sendImmediately: true
-      json:
-        scopes: ['user', 'repo', 'gist']
-        note: 'GitHub Atom'
-        note_url: 'https://atom.io'
+      json: @getAuthorization()
       proxy: process.env.http_proxy || process.env.https_proxy
       headers:
         'User-Agent': @getUserAgent()

        deferred.reject(new Error(message))
    deferred.promise

  createToken: (state) =>
    {user, password, authCode} = state
    requestOptions =
      uri: 'https://api.github.com/authorizations'
      method: 'POST'

    deferred.promise

  saveToken: ({token}) =>
    process.stdout.write('Saving token to Keychain ')
    keytar.replacePassword('Atom GitHub API Token', 'github', token)
    process.stdout.write '\u2713\n'.green
    Q(token)
