const fs = require('fs')
const path = require('path')
const moment = require('moment')
const cli = require('commander')
const config = require('../apiConfig')

cli.parse(process.argv)

config.token = cli.args[0]
config.tokenAge = moment().dayOfYear() + 30

fs.writeFileSync(
  path.resolve('./apiConfig.json'), JSON.stringify(config, null, 2))

const fs = require('fs')
const path = require('path')
const moment = require('moment')
const cli = require('commander')
const config = require('../apiConfig')

cli.parse(process.argv)

config.token = cli.args[0]
config.tokenAge = moment().dayOfYear() + 28

fs.writeFileSync(
  path.resolve('./apiConfig.json'), JSON.stringify(config, null, 2))

Set token lifetime to 27 days to be safe.
Set token lifetime to 27 days to be safe.
