googleapis / nodejs-resource-manager

This repository is deprecated. All of its content and history has been moved to googleapis/google-cloud-node.
https://cloud.google.com/resource-manager/
Apache License 2.0
22 stars 20 forks source link

How do I pass client oauth into Resource()? #411

Closed joetito1 closed 2 years ago

joetito1 commented 3 years ago

I'm trying to use Resource() to get projects for the currently authenticated user who I've authenticated with OAuth. Could someone please explain how I would pass an exsiting oauth client into this call please?

const [projects] = await new Resource().getProjects();

sofisl commented 2 years ago

Hi @joetito1, our recommended way of authenticating is to use Application Default Credentials. I will close this issue for now since we are migrating this repository to google-cloud-node. If you continue running into problems, please reopen the issue in that repo. Thank you!