sorry to be asking this question again, but I really need this problem solved (about to reach my max data limit on shinyapps.io). Here is the link to my previous question Previous Stack Question
Here is the link to my demo app. Demo App Hosted On ShinyApps.io You will notice the app does not time out. For example here is my logs for this app just for today. 
I have tried everything that was recommended to me from my last question as well as including the timeOut parameter in the shinymanager::secure_server() function.
What seems to be the problem is, shinyapps.io puts a timer for inactivity on the UI. Once the UI is inactive it then starts a timeout on the R process. However, in our case the UI does not start up until authentication. This means our server keeps running.
Something like a set timeout (setTimeout()) would be a great alternative. For example, if the user does not authenticate within 5 minutes, time out. I initially tried a while loop, but it did not turn out as planned.
I am looking for a way to time out the server if there is no activity. Here is a toy example of what my code looks like. Lastly, here is a link to the shinymanager package on github. shinymanager
Ui.R
ui <- dashboardPage(
#My UI page and functions
)
shinymanager::secure_app(ui)
Server.R
function(input, output, session){
auth = secure_server(check_credentials = check_credentials(df)) #df is my client database
observeEvent(auth$user,{
#server functions. This only gets run once the user authenticates
}
}