{"_id":"@acceleratxr/passport-google","_rev":"2-7c3c0ada6545efaf6a72280e15770a10","name":"@acceleratxr/passport-google","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0-alpha":{"name":"@acceleratxr/passport-google","version":"1.0.0-alpha","description":"Passport strategy for authenticating with Google using the OAuth 2.0 API.","author":{"name":"AcceleratXR, Inc.","email":"info@acceleratxr.com"},"repository":{"type":"git","url":"https://gitlab.acceleratxr.com/AcceleratXR/passport-google.git"},"license":"MIT","main":"dist/lib/index.js","typings":"dist/types/index.d.ts","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc","docs":"typedoc --plugin typedoc-plugin-markdown --out docs/reference --target esnext --mode file src","test":"jest --detectOpenHandles","test:watch":"jest --detectOpenHandles --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","postversion":"git push && git push --tags"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"mongodbMemoryServer":{"version":"4.2.2"}},"jest":{"globals":{"ts-jest":{"tsConfig":"tsconfig.test.json","diagnostics":{"ignoreCodes":[2321]}}},"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":0,"functions":0,"lines":0,"statements":0}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"printWidth":120,"semi":true,"singleQuote":false,"tabWidth":4,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@types/express":"^4.17.13","@types/jest":"^27.4.0","commitizen":"^4.2.4","express":"^4.17.2","jest":"^27.0.6","jest-config":"^27.0.6","jest-haste-map":"^27.0.6","jest-resolve":"^27.0.6","lint-staged":"^12.2.1","lodash.camelcase":"^4.3.0","nock":"^13.1.1","prettier":"^2.3.2","rimraf":"^3.0.2","semantic-release":"^19.0.2","supertest":"^6.2.2","ts-jest":"^27.0.4","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^9.0.0","typedoc":"^0.22.11","typedoc-plugin-markdown":"^3.10.4"},"dependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^17.0.10","@types/passport":"^1.0.7","@types/passport-oauth2":"^1.4.11","@types/passport-strategy":"^0.2.35","axios":"^0.25.0","form-data":"^4.0.0","jsonwebtoken":"^8.5.1","passport":"^0.5.2","passport-oauth":"^1.0.0","passport-oauth2":"^1.6.1","typescript":"^4.3.5"},"gitHead":"b610bcd2abbb5436d37bc4ccf2b716d0f74c7ac3","_id":"@acceleratxr/passport-google@1.0.0-alpha","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-ur9UKJwRWFt7U6LJcoavkE1ZPrWzZ1fU/kqe2CROLMIqaQeCzGERjHlauunlMysoSv2D4gAikz7dY+OpHox86Q==","shasum":"e3632e019ce8463bea4226a8196b625e9833d144","tarball":"https://registry.npmjs.org/@acceleratxr/passport-google/-/passport-google-1.0.0-alpha.tgz","fileCount":8,"unpackedSize":18789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBFGHCRA9TVsSAnZWagAAs04P/0PKi1ch8rNlqsPdeIDd\n2gKmSKMyrX3t7YLocJLkgs+wwNctzdnWKrikRfxR5h8VQyiniezPJxdXIqq6\ndr64FUkTkkug6Hhybz7WnorQWrKW9GsXaENiZq714ipU23p8FKEBHUsvcBNJ\nZRfRkNOf7XGeQ4ie8oASHcWlLtQ5dz+TPEY4FbZsBBYIpLpkRc3AGUXW2Gav\nOWnn47pp6UTCOYqGnL3TaOXM37S9uOlCn+c0lodF3Uj72+/ENqG0iMGqjXSC\nfjhhf/Og5RuWCuQ+Zd74c06y99E0tKLVCAHsqfKFilYTa9UJvwPfz9MVAcPn\n7F/ZwQHVSt3qgdbMIYeXGy3jnVEyDwV14hXVSKW5jEJKiAPFAvig02OcFM4N\nL6Fv3gWCDKP2neTJWH1TvlNvUIRyKBpUEweM/9BNJkkT8sSow2OvDncXRvIm\nL6Hg541HqNybvUV5tofwuOxEE4d5pW7shRylwu8nQ74BtvtMnvnlHDlFvKNw\nnMwQx7+QqWGFqX9DnVPL/94fK8LcuxeEWRpUYZAKCmWZ72ptu9opNoaYpQ8i\nk7LICvcJ540zuiAbwyLAhNo1/OVHxXV+dvzlP+flZ/7IrfSrazZBRD4yIH9Q\neC/9XKRzUd3TvSM9fcVr9zOZh9TLEPz9p0Zkg1MhzbIOjYZqCb9dqXzU+crD\nVg7F\r\n=oQeg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnTghtDJ2jRba8E5I0TrB+HSekvKlVS+E//6+6p+fsyAIhANfMnSY9o0g6FM3pRjl5OUj8DPVLC+uranYXMnbLy2/w"}]},"_npmUser":{"name":"acceleratxr","email":"admin@acceleratxr.com"},"directories":{},"maintainers":[{"name":"acceleratxr","email":"admin@acceleratxr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-google_1.0.0-alpha_1644450183576_0.8974332145752408"},"_hasShrinkwrap":false},"1.0.0":{"name":"@acceleratxr/passport-google","version":"1.0.0","description":"Passport strategy for authenticating with Google using the OAuth 2.0 API.","author":{"name":"AcceleratXR, Inc.","email":"info@acceleratxr.com"},"repository":{"type":"git","url":"https://gitlab.acceleratxr.com/AcceleratXR/passport-google.git"},"license":"MIT","main":"dist/lib/index.js","typings":"dist/types/index.d.ts","engines":{"node":">=10.0.0"},"scripts":{"lint":"tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'","prebuild":"rimraf dist","build":"tsc","docs":"typedoc --plugin typedoc-plugin-markdown --out docs/reference --target esnext --mode file src","test":"jest --detectOpenHandles","test:watch":"jest --detectOpenHandles --watch","test:prod":"npm run lint && npm run test -- --coverage --no-cache","deploy-docs":"ts-node tools/gh-pages-publish","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","precommit":"lint-staged","postversion":"git push && git push --tags"},"lint-staged":{"{src,test}/**/*.ts":["prettier --write","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"mongodbMemoryServer":{"version":"4.2.2"}},"jest":{"globals":{"ts-jest":{"tsConfig":"tsconfig.test.json","diagnostics":{"ignoreCodes":[2321]}}},"transform":{".(ts|tsx)":"ts-jest"},"testEnvironment":"node","testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js","json"],"coveragePathIgnorePatterns":["/node_modules/","/test/"],"coverageThreshold":{"global":{"branches":0,"functions":0,"lines":0,"statements":0}},"collectCoverageFrom":["src/*.{js,ts}"]},"prettier":{"printWidth":120,"semi":true,"singleQuote":false,"tabWidth":4,"trailingComma":"es5"},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^16.0.3","@commitlint/config-conventional":"^16.0.0","@types/express":"^4.17.13","@types/jest":"^27.4.0","commitizen":"^4.2.4","express":"^4.17.2","express-session":"^1.17.2","jest":"^27.0.6","jest-config":"^27.0.6","jest-haste-map":"^27.0.6","jest-resolve":"^27.0.6","lint-staged":"^12.2.1","lodash.camelcase":"^4.3.0","nock":"^13.1.1","prettier":"^2.3.2","rimraf":"^3.0.2","semantic-release":"^19.0.2","supertest":"^6.2.2","ts-jest":"^27.0.4","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","tslint-config-standard":"^9.0.0","typedoc":"^0.22.11","typedoc-plugin-markdown":"^3.10.4"},"dependencies":{"@acceleratxr/passport-oauth2":"^1.7.0","@types/jsonwebtoken":"^8.5.8","@types/node":"^17.0.10","@types/passport":"^1.0.7","@types/passport-oauth2":"^1.4.11","@types/passport-strategy":"^0.2.35","axios":"^0.25.0","form-data":"^4.0.0","jsonwebtoken":"^8.5.1","passport":"^0.5.2","passport-oauth":"^1.0.0","typescript":"^4.3.5"},"gitHead":"697542db1bda622dbfb5c207aad8433a3726a19d","_id":"@acceleratxr/passport-google@1.0.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-vQ9pibhOOTtAgQwn/vsBlbc0luFGpaqNjmwHjScecVPs68FrJ8aE6Q96HL1dhN4hFZChSch3wTDg6P1jZvfbGg==","shasum":"d4b9b5c328af65cbd4f7d3c08a67f4cdcf974eb0","tarball":"https://registry.npmjs.org/@acceleratxr/passport-google/-/passport-google-1.0.0.tgz","fileCount":8,"unpackedSize":18997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDEHKCRA9TVsSAnZWagAALB4QAIyXn5BRs/itTRdgaq1e\nihsouMi0m64wX2JYsmOWjHuKrmAfDL98h4dfwqvMqsZYmxosZlv9EzVJyvXI\nqK2JuN6kCe621Ljbc8CkrQ384WUgqlew/LOBZqlkFLO9hKYJuUXEMEsq1HE4\n6lX8J48wJcQqG5AHWhPT24IGi7T8kJUoM4eG+zdUvqJvUa7Xfxw2zEPHlXZd\n14mUF4bllJXSg1fdjPBsLnhF1FWBzE4hLCr5ftMu7CQwH3OdLbMp43bEr2L9\n/lkiINzjPcIQx/wIoUJNyvjIUg2LIfBSld3IePL+YeFTb/xaQrGknrLNiOLM\nEwWTOTH1sSJM1Xcuwj+N8QKpDkJQFgR1zE+m1o8m55lbRco9CWhKiopGCl2G\nf2QNTih/qL5Wy4xFpZWEdZyzHdpeN6/xzbrKb9DqCWX6dTYTV3P6ZzQQKDQM\nM7ywfgc+jdEMj6UzY3jievwoRX5wDglBpGmy2YcWjBeIDU/AF3sOsaaZF9sv\nvHTedMAjAtcH6tBJ/0ZYnrkICtb+bICS6igLxnn85HZcVy+oGX65rxyu7VhP\n2mGxQMyzGHuEV39Qwe5s012Kh3/agRPC44yj99iFwX/2kuXfGGFHT5gJ7AKk\ncwO29mVOX4+ij/TXAaPqZ9ea0/0DBrcnc+xl9tvqqbbCg3eoh+es1hQMwPO3\nmBZ8\r\n=uqGi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGfgGCDBdjyOMz6ru+HFI+uDOV9SfdBAxHp6+IB6IocjAiBBftnDyAtGN1KFUhSTrr3ZMBA4s2xRU+hFcTog0hQ0pw=="}]},"_npmUser":{"name":"acceleratxr","email":"admin@acceleratxr.com"},"directories":{},"maintainers":[{"name":"acceleratxr","email":"admin@acceleratxr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-google_1.0.0_1644970442102_0.2191056734661574"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-09T23:43:03.516Z","1.0.0-alpha":"2022-02-09T23:43:03.782Z","modified":"2022-04-04T11:06:41.301Z","1.0.0":"2022-02-16T00:14:02.243Z"},"maintainers":[{"name":"acceleratxr","email":"admin@acceleratxr.com"}],"description":"Passport strategy for authenticating with Google using the OAuth 2.0 API.","repository":{"type":"git","url":"https://gitlab.acceleratxr.com/AcceleratXR/passport-google.git"},"author":{"name":"AcceleratXR, Inc.","email":"info@acceleratxr.com"},"license":"MIT","readme":"# passport-google\n\nPassport strategy for authenticating with Google access tokens using the OAuth 2.0 API.\n\nThis module lets you authenticate using Google in your Node.js applications using the Passport framework.\n\n## Installation\n```\nnpm install @acceleratxr/passport-google\n```\n\nor\n\n```\nyarn add @acceleratxr/passport-google\n```\n\n## Usage\n\n### Configure Strategy\n\nThe Google authentication strategy authenticates users using a Google account and OAuth 2.0 tokens. The strategy\nrequires a `verify` callback to perform a look up of the user account given a verified OAuth 2.0 token.\n\n#### JavaScript\n```\nconst GoogleStrategy = require('@acceleratxr/passport-google');\n\npassport.use(new GoogleStrategy({\n    clientID: GOOGLE_APP_ID,\n    clientSecret: GOOGLE_APP_SECRET,\n    apiVersion: \"v8\"\n  }, function(accessToken, refreshToken, profile, done) {\n    User.findOrCreate({googleId: profile.id}, function (error, user) {\n      return done(error, user);\n    });\n  }\n));\n```\n\n#### TypeScript\n```\nimport { GoogleStrategy } from \"@acceleratxr/passport-google\";\n\npassport.use(new GoogleStrategy({\n    clientID: GOOGLE_APP_ID,\n    clientSecret: GOOGLE_APP_SECRET,\n    apiVersion: \"v8\"\n  }, function(accessToken, refreshToken, profile, done) {\n    User.findOrCreate({googleId: profile.id}, function (error, user) {\n      return done(error, user);\n    });\n  }\n));\n```\n\n### Authenticate Requests\n\nUse `passport.authenticate()`, specifying `google` as the strategy to authenticate requests.\n\n```\napp.post('/auth/google',\n  passport.authenticate('google'),\n  function (req, res) {\n    // do something with req.user\n    res.send(req.user? 200 : 401);\n  }\n);\n```\n\n### Client Requests\n\nClients can send requests to routes that use the *passport-google* strategy using query params. Clients must\ntransmit the `code`, `code_verifier`, and `redirect_uri` parameters that are received after Google login. Clients\nmay also optionally transmit a `state` parameter.\n\n```\nGET /auth/google?code=<TOKEN_HERE>&state=<STATE_HERE>&redirect_uri=<URI>&code_verifier=<CHALLENGE>\n```","readmeFilename":"README.md"}