Authentication token and refraining from using Cron
This week, i spent a few days figuring out what I can do to refresh our authentication token from the Petfinder API. I had been looking through various scripts and one that caught my was Cron. A CRON script is a list of one or more commands to a computer operating system or application server that are to be executed at a specified time. As mentioned in an earlier blog post, i referred to this link react-js-cron - npm (npmjs.com) and read more about cron script for React JS. As i started to implement some of the steps, I found myself dealing with errors concerning deprecated scripts and possibly needing to download more software from the host repository. The terminal command for npm install -n led me down researching errors on updating our libraries but these updates didn't seem like the right way to handle the solution to the authentication token problem. I didn't want to add more memory usage to the overall files. I decided to search the internet for a solution t...