Firebase functions defineSecret vs defineString security
I am developing a small firebase app and, as part of it, I have some backend functions that make calls to an API using an API key. To avoid storing the key in version control, I define it using defineString
in my functions index.ts
. However, I recently became aware of a different defineSecret
method. How big of a difference is there between the two and is it insecure to use defineString
for my API key?