Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 594 Bytes

README.md

File metadata and controls

24 lines (22 loc) · 594 Bytes

"# node-red-contrib-auth-google"

Install using npm

npm i node-red-contrib-auth-google

declare module using either

var googleauth = require("node-red-contrib-auth-google");

or using typescript

import * as googleauth from "node-red-contrib-auth-google";

then initilize

settings.adminAuth = new googleauth.noderedcontribauthgoogle("http://localhost:1880/", "blahblah.apps.googleusercontent.com", "secret", 
(profile:string | any, done:any)=> {
    profile.permissions = "read";
    profile.permissions = "*";
    done(profile);
});