oauth
oauth(
scopes,env?):Promise<OAuth2Client|null>
Defined in: authentication.ts:29
Signs in with Google OAuth: opens the consent page, waits on a local callback and resolves with the client holding the tokens.
Parameters
Section titled “Parameters”scopes
Section titled “scopes”string[]
EnvLookup = ...
Where to read the GOOGLE_* variables from; defaults to the process environment.
Returns
Section titled “Returns”Promise<OAuth2Client | null>