Skip to main content
Solved

How can I manage and hide secret keys and configs?

  • September 10, 2022
  • 2 replies
  • 1059 views

Saifylis

My plugin uses a couple of API keys that must be kept secret.

The solution I had in mind was using dotenv. However, I’m instead running into some errors which I can’t make much sense out of.

What should I do? Should I use setPluginData? Does dotenv even work for Figma Plugin development anyways?

Thanks!

Best answer by tonypinkevych

The only safe way is to use the cloud (server or serverless functions) and then you can expose the required API and use it in your plugin.
The easiest way is to use firebase or vercel for this.

View original

2 replies

tonypinkevych
  • New Member
  • 9 replies
  • Answer
  • September 12, 2022

The only safe way is to use the cloud (server or serverless functions) and then you can expose the required API and use it in your plugin.
The easiest way is to use firebase or vercel for this.


Saifylis
  • Author
  • 11 replies
  • September 12, 2022

Noted, thank you so much!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings