OAuth 2.0 (Salesforce) on Posit Connect

I wrote an API wrapper using httr2 for a salesforce/lockbox API which works perfectly fine out of RStudio. It uses salesforce's OAuth 2.0 authorization code flow to login users into salesforce/lockbox (which opens a browser window to ask for user credentials).

When deployed to Posit Connect the wrapper fails with the error:

! OAuth 2.0 authorization code flow requires an interactive session

I'm still new to authorization flows and Posit Connect and don't know where to attack this problem. Is the OAuth 2.0 authorization code flow incompatible with Posit Connect?

Thank you!