endoplasmic / google-assistant

A node.js implementation of the Google Assistant SDK
MIT License
283 stars 75 forks source link

⚡️ - Allow a new instance to be created by passing an OAuth2 instance #69

Closed sysebert closed 5 years ago

sysebert commented 5 years ago

If you already have authenticated an account, you can pass that client to the constructor.

This will allow different users to query the service.

eouia commented 5 years ago

Is there any example about getting oauth2client?

endoplasmic commented 5 years ago

Maybe something like this is what you're after? https://github.com/googleapis/google-auth-library-nodejs#oauth2