1.0.6 • Published 2 years ago
@mich4l/passport-google v1.0.6
Untested and not ready to use module - in early stage of development!
Google strategy for Passport.js
Easy to use Google strategy. It's just Sign In With Google implementation (https://developers.google.com/identity/gsi/web/guides/verify-google-id-token).
Options
clientID
(required) - required for idToken verification.csrfCheck
(optional) - strategy will validateg_csrf_token
. False by default.passReqToCallback
(optional) - strategy will pass Request object to callback.tokenFromRequest
(optional) - strategy will use provided function to extract id token from request.
Important things
- Use HTTPS
- Never include your secrets directly in your code base - use environment variables instead.