Fetch data from private Github repo to shinyapps.io

I've successfully deployed an app to Shinyapps.io that uses httr to read data from a public Github repo and plots it for the client.

I am now wanting to do the same using a private repo, and cannot figure out if it is even possible. Similar questions that weren't answered leads me to think it isn't possible yet:

I've generated a key and secret according to this, and have tried using the code but it doesn't even work from my local machine, so I'm missing something:

This seems like a very common thing that people would do, but I'm not finding much info (like a step-by-step guide for non-developers).

Thanks for any help! -Eric

You could use the gh package to call the GitHub API, with a personal access token. See the package docs.

This would still require me to send my Github PAT to shinyapps.io, right? Using the gh package to access a private repo still requires a PAT, which cannot be gotten remotely by the app so must be sent along with the app?