Skip to main content
Solved

Storing sensitive information for my block

  • May 27, 2020
  • 1 reply
  • 23 views

Hey everybody,

If I have to use somet sensitive information in my code, like an API key, what’s the best way to do that?
I could put it right into the code, but my block to be open source (for the hackathon), so…any advice?

Cheers,
Alec

Best answer by andywingrave

Hey! You should always set up an environment variable with your keys so they are hidden,

Here’s a good article if you’re writing in React

1 reply

Forum|alt.badge.img+19
  • Inspiring
  • 323 replies
  • Answer
  • May 28, 2020

Hey! You should always set up an environment variable with your keys so they are hidden,

Here’s a good article if you’re writing in React