In Python there is trino.auth.OAuth2Authentication to redirect to web to autheticate.
trino.auth.OAuth2Authentication
Is there something similar in R?