Skip to content

The flush key should not be written in clear. If abused, it may block your Google Sheets API Key. #30

Description

@RaphaelRoumezin

if (query.flush == "02874523") {
console.log("Flushing the cache.");
data = fetchDataBrokers();
}

It could be replaced by an env variable, like the API Key.

if (query.flush == process.env.FLUSH_KEY) { 
   console.log("Flushing the cache."); 
   data = fetchDataBrokers(); 
 } 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions