The http://passportjs.org/docs/google page has example code for the passport-google module, which uses OpenID. Since Google no longer supports OpenID, following the tutorial results in an error: Failed to discover OP endpoint
A solution is to rewrite the tutorial using the passport-google-oauth2 module.