Disconnected from the server - shinyapps.io & googlesheet

My guess is that your problem is with the way you are providing credential for googlesheets4 but it is impossible to be sure without seen any code.

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at these resources, to see how to create one for a shiny app