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.
npm install seneca-google-authVerified import paths — ran on the pinned version, not inferred.
Initializes Seneca with local and Google authentication using environment variables for credentials.
Consider alternative auth plugins or upgrade to maintained fork.
Call seneca.use('google-auth', options).Install seneca-auth: npm install seneca-auth.
Provide both clientID and clientSecret in options.
Set callbackUrl in options to a unique path.
npm install seneca-google-auth
Ensure require('seneca-google-auth') or require('seneca-google-auth')() before seneca.use.Provide clientID in the Google service options.