async function getAccessToken ({code, state}) {
  const options = {
    method: 'POST',
    uri: 'https://github.com/login/oauth/access_token',
    form: {
      client_id: process.env.CLIENT_ID,
      client_secret: process.env.CLIENT_SECRET,
      code: code
    }
  }

  try {
    let resp = await rp(options)
    return qs.parse(resp).access_token
  } catch (e) {
    console.error(e)
  }
}
[getAccessToken description]
@param  {[type]} code [description]
@return {[type]}      [description]