skip to Main Content

I am trying using ability of openai for my flutter app, but for now I don’t have experience to save apikey safely and efficiently etc. I learned that I can save my openai apikey somewhere in the firebase and let flutter client visit the firebase to get the access to openai.

But for now I do not know the total correct process or code example to handle this issue, could someone share some article or some existing method between flutter and firebase for saving apikey saving? It could be great to share the dis-and-advantage for costs or time-consuming.

Thanks a lot!

2

Answers


  1. See this thread mentioning Secret Manager as a way to store this kind of data safely. Hope this resolves your question.

    Login or Signup to reply.
  2. One other solution is to use the ‘–dart-define‘ environment flag.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search