Skip to content

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.

string[]

EnvLookup = ...

Where to read the GOOGLE_* variables from; defaults to the process environment.

Promise<OAuth2Client | null>