authLoad = () => {
  return (dispatch) => {
    db.findOne(
      {
        _id: 1,
      },
      (err, doc) => {
        if (doc !== null) {
          const now = new Date().getTime()
          const fromNow = now - doc.time
          const fromNowDisplay = fromNow / (1000 * 60 * 60 * 24)

          // remove user info when already logged 60 days
          console.log('token storage time ' + fromNowDisplay + ' day(s)')
          if (fromNow > 5184000000) {
            db.remove({
              _id: 1,
            })
            dispatch(playlistGET('new'))
            dispatch(appChannelGET())
          } else {
            dispatch(actions.authTokenLoad(doc))

            dispatch(playlistGET('new'))

            dispatch(appChannelGET())
            dispatch(userInfoGET())

            dispatch(dailyListGET())
            dispatch(recentListGET())
            dispatch(redHeartListGET())
            dispatch(trashListGET())
          }
        } else {
          dispatch(playlistGET('new'))
          dispatch(appChannelGET())
        }
      }
    )
    rendererProcessSend('resizeWindowAfterLoading')
    rendererProcessSend('patternSwitch', 'select')
  }
}
Deal with loading user info from db file

@returns {Function} - a thunk function