API key that constantly expires

Hello, I am using ChatGPT and I created an application and shared it in the app store. However, both during the development phase and when it is live, the API key I created expires approximately every 2 weeks for no reason. Can anyone help?

I can help: You are sharing your API key within the app store where it is easily stolen and abused by others – and also easily detected and deleted by OpenAI’s scanning methods for leaked keys before you experience massive account abuse.

Do not put API keys into client applications and do not make calls with user software directly to the OpenAI API. You must set up your own backend that receives app data, uses moderations to filter and approve the language, and uses customer authentication systems.


it is in the source code.
Where should I store the API KEy