node-red-contrib-auth-google

1.0.4 • Public • Published

"# 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);
});

Readme

Keywords

none

Package Sidebar

Install

npm i node-red-contrib-auth-google

Weekly Downloads

2

Version

1.0.4

License

MPL-2.0

Unpacked Size

28.2 kB

Total Files

8

Last publish

Collaborators

  • skadefro