{"library":"seneca-google-auth","title":"seneca-google-auth","description":"A Seneca.js plugin for Google OAuth2 authentication, used as a service provider with seneca-auth. Version 1.0.0 is the current stable release, last updated in 2016. It wraps PassportJS Google strategy and provides a default action to transform Google login data. Key differentiator: integrates with Seneca microservices framework, allowing custom overrides of user data preparation. Requires seneca-auth and seneca as peer dependencies. No active maintenance, but functional for legacy Seneca applications.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install seneca-google-auth"],"cli":null},"imports":["require('seneca-google-auth')","seneca.use('google-auth', {...})","seneca.use('google-auth', { clientID: '...', clientSecret: '...', urlhost: '...' })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const seneca = require('seneca')({ log: 'silent' });\nconst senecaAuth = require('seneca-auth');\nrequire('seneca-google-auth');\n\nseneca.use(senecaAuth, {\n  service: {\n    local: {},\n    google: {\n      clientID: process.env.GOOGLE_CLIENT_ID ?? '',\n      clientSecret: process.env.GOOGLE_CLIENT_SECRET ?? '',\n      urlhost: process.env.HOST ?? 'http://localhost:3000',\n      serviceParams: { scope: ['profile', 'email'] }\n    }\n  }\n});\n\nseneca.ready(() => {\n  console.log('Google auth plugin ready');\n});","lang":"javascript","description":"Initializes Seneca with local and Google authentication using environment variables for credentials.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}