Skip to content
/ google-dwd Public

Google Domain Wide Delegation Client

License

Notifications You must be signed in to change notification settings

vh/google-dwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-dwd

Google Domain Wide Delegation Client

Install

npm install google-dwd

Usage

const { GoogleAuth } = require('google-auth-library');
const dwd = require('google-dwd');

const auth = new GoogleAuth();
const client = await auth.getClient();

const dwdClient = await dwd(client, 'test@googleworkspace.com', [ 'https://www.googleapis.com/auth/gmail.readonly' ]);