Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Prepare for Google+ shutdown
Browse files Browse the repository at this point in the history
- The passport module used for Google authentication leveraged
  legacy Google+ APIs; have now switched to a new library which
  uses the recommended/supported oauth endpoints for authentication.

See: jaredhanson/passport-google-oauth2#51
     https://github.com/passport-next/passport-google-oauth2
  • Loading branch information
cdunford committed Feb 3, 2019
1 parent 4993aae commit da73aeb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 21 deletions.
42 changes: 24 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"url": "https://github.com/cdunford/chickentendermarketplace.git"
},
"dependencies": {
"@passport-next/passport-google-oauth2": "^1.0.0",
"adaro": "^1.0.4",
"agenda": "^2.0.2",
"body-parser": "^1.18.3",
Expand All @@ -46,7 +47,6 @@
"passport": "^0.4.0",
"passport-facebook": "^2.1.1",
"passport-github2": "^0.1.11",
"passport-google-oauth2": "^0.1.6",
"simple-pagination.js": "^1.6.0",
"typescript": "^2.9.2",
"uuid": "^3.3.2"
Expand All @@ -71,7 +71,6 @@
"@types/passport": "^0.3.5",
"@types/passport-facebook": "^2.1.8",
"@types/passport-github2": "^1.2.2",
"@types/passport-google-oauth2": "^0.1.2",
"@types/uuid": "^3.4.4",
"tslint": "^5.12.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/auth/providers/googleOAuthProvider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Strategy } from '@passport-next/passport-google-oauth2';
import { Strategy as StrategyBase } from 'passport';
import { Strategy } from 'passport-google-oauth2';
import { IOAuthProvider, IOAuthProviderConfig, IOAuthUser, ValidatorFunction } from '../entities';

/**
Expand Down

0 comments on commit da73aeb

Please sign in to comment.