I am new and apologies if this is the wrong category.
I have been working on a simple electron-vue desktop app that can send requests to a google sheet to make entries in it. I have had pretty good success in creating a basic forum and when hitting send for it to make the api call and then have that entry show up in google sheets.
I however am having trouble when the request fails for some reason (no internet for instance). Is there an npm that can handle the scenario to save the data locally (encrypted if possible) as long as there is failure and then retry all the requests asynchronously .
There is a need to save it locally since the user can close the app between sessions and that data needs to saved somewhere and retried.