node-red-contrib-auth-google
v1.0.4
Published
"# node-red-contrib-auth-google"
Downloads
14
Readme
"# 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);
});