Hi @Huimin ZHANG
As far as I know, client secrets are not automatically updated, which means you have to restart your application to upload a new secret after the client secret expires. In addition, you can also use a script to create a client secret that never expires, but I don't recommend it because it may create some security risks.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.