Skip to content

Commit a47b79d

Browse files
committed
removed userProfileURL, upgraded package #195
1 parent f301359 commit a47b79d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+328
-203
lines changed

boilerplate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"next": "7.0.2",
2222
"nprogress": "0.2.0",
2323
"passport": "0.4.0",
24-
"passport-google-oauth": "1.0.0",
24+
"passport-google-oauth": "2.0.0",
2525
"prop-types": "15.6.2",
2626
"react": "16.5.2",
2727
"react-dom": "16.5.2",

boilerplate/server/google.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function auth({ ROOT_URL, server }) {
3535
clientID: process.env.Google_clientID,
3636
clientSecret: process.env.Google_clientSecret,
3737
callbackURL: `${ROOT_URL}/oauth2callback`,
38-
userProfileURL: 'https://www.googleapis.com/oauth2/v3/userinfo',
3938
},
4039
verify,
4140
),

boilerplate/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4832,20 +4832,20 @@ [email protected]:
48324832
dependencies:
48334833
passport-oauth1 "1.x.x"
48344834

4835-
passport-google-oauth20@1.x.x:
4836-
version "1.0.0"
4837-
resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-1.0.0.tgz#3b960e8a1d70d1dbe794615c827c68c40392a5d0"
4838-
integrity sha1-O5YOih1w0dvnlGFcgnxoxAOSpdA=
4835+
passport-google-oauth20@2.x.x:
4836+
version "2.0.0"
4837+
resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-2.0.0.tgz#0d241b2d21ebd3dc7f2b60669ec4d587e3a674ef"
4838+
integrity sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==
48394839
dependencies:
48404840
passport-oauth2 "1.x.x"
48414841

4842-
passport-google-oauth@1.0.0:
4843-
version "1.0.0"
4844-
resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-1.0.0.tgz#65f50633192ad0627a18b08960077109d84eb76d"
4845-
integrity sha1-ZfUGMxkq0GJ6GLCJYAdxCdhOt20=
4842+
passport-google-oauth@2.0.0:
4843+
version "2.0.0"
4844+
resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-2.0.0.tgz#f6eb4bc96dd6c16ec0ecfdf4e05ec48ca54d4dae"
4845+
integrity sha512-JKxZpBx6wBQXX1/a1s7VmdBgwOugohH+IxCy84aPTZNq/iIPX6u7Mqov1zY7MKRz3niFPol0KJz8zPLBoHKtYA==
48464846
dependencies:
48474847
passport-google-oauth1 "1.x.x"
4848-
passport-google-oauth20 "1.x.x"
4848+
passport-google-oauth20 "2.x.x"
48494849

48504850
48514851
version "1.1.0"

book/3-end/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"next": "7.0.2",
2121
"nprogress": "0.2.0",
2222
"passport": "0.4.0",
23-
"passport-google-oauth": "1.0.0",
23+
"passport-google-oauth": "2.0.0",
2424
"prop-types": "15.6.2",
2525
"react": "16.6.0",
2626
"react-dom": "16.6.0",

book/3-end/server/google.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function auth({ ROOT_URL, server }) {
3535
clientID: process.env.Google_clientID,
3636
clientSecret: process.env.Google_clientSecret,
3737
callbackURL: `${ROOT_URL}/oauth2callback`,
38-
userProfileURL: 'https://www.googleapis.com/oauth2/v3/userinfo',
3938
},
4039
verify,
4140
),

book/3-end/yarn.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,11 @@ base64-js@^1.0.2:
13311331
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3"
13321332
integrity sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==
13331333

1334+
1335+
version "3.0.1"
1336+
resolved "https://registry.yarnpkg.com/base64url/-/base64url-3.0.1.tgz#6399d572e2bc3f90a9a8b22d5dbb0a32d33f788d"
1337+
integrity sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==
1338+
13341339
base@^0.11.1:
13351340
version "0.11.2"
13361341
resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
@@ -4847,20 +4852,20 @@ [email protected]:
48474852
dependencies:
48484853
passport-oauth1 "1.x.x"
48494854

4850-
passport-google-oauth20@1.x.x:
4851-
version "1.0.0"
4852-
resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-1.0.0.tgz#3b960e8a1d70d1dbe794615c827c68c40392a5d0"
4853-
integrity sha1-O5YOih1w0dvnlGFcgnxoxAOSpdA=
4855+
passport-google-oauth20@2.x.x:
4856+
version "2.0.0"
4857+
resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-2.0.0.tgz#0d241b2d21ebd3dc7f2b60669ec4d587e3a674ef"
4858+
integrity sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==
48544859
dependencies:
48554860
passport-oauth2 "1.x.x"
48564861

4857-
passport-google-oauth@1.0.0:
4858-
version "1.0.0"
4859-
resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-1.0.0.tgz#65f50633192ad0627a18b08960077109d84eb76d"
4860-
integrity sha1-ZfUGMxkq0GJ6GLCJYAdxCdhOt20=
4862+
passport-google-oauth@2.0.0:
4863+
version "2.0.0"
4864+
resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-2.0.0.tgz#f6eb4bc96dd6c16ec0ecfdf4e05ec48ca54d4dae"
4865+
integrity sha512-JKxZpBx6wBQXX1/a1s7VmdBgwOugohH+IxCy84aPTZNq/iIPX6u7Mqov1zY7MKRz3niFPol0KJz8zPLBoHKtYA==
48614866
dependencies:
48624867
passport-google-oauth1 "1.x.x"
4863-
passport-google-oauth20 "1.x.x"
4868+
passport-google-oauth20 "2.x.x"
48644869

48654870
48664871
version "1.1.0"
@@ -4872,10 +4877,11 @@ [email protected]:
48724877
utils-merge "1.x.x"
48734878

48744879
4875-
version "1.4.0"
4876-
resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.4.0.tgz#f62f81583cbe12609be7ce6f160b9395a27b86ad"
4877-
integrity sha1-9i+BWDy+EmCb585vFguTlaJ7hq0=
4880+
version "1.5.0"
4881+
resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.5.0.tgz#64babbb54ac46a4dcab35e7f266ed5294e3c4108"
4882+
integrity sha512-kqBt6vR/5VlCK8iCx1/KpY42kQ+NEHZwsSyt4Y6STiNjU+wWICG1i8ucc1FapXDGO15C5O5VZz7+7vRzrDPXXQ==
48784883
dependencies:
4884+
base64url "3.x.x"
48794885
oauth "0.9.x"
48804886
passport-strategy "1.x.x"
48814887
uid2 "0.0.x"

book/3-start/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"next": "7.0.2",
2222
"nprogress": "0.2.0",
2323
"passport": "0.4.0",
24-
"passport-google-oauth": "1.0.0",
24+
"passport-google-oauth": "2.0.0",
2525
"prop-types": "15.6.2",
2626
"react": "16.6.0",
2727
"react-dom": "16.6.0",
@@ -31,12 +31,12 @@
3131
"babel-eslint": "10.0.1",
3232
"eslint": "5.7.0",
3333
"eslint-config-airbnb": "17.1.0",
34+
"eslint-config-prettier": "3.3.0",
3435
"eslint-plugin-import": "2.14.0",
3536
"eslint-plugin-jsx-a11y": "6.1.2",
37+
"eslint-plugin-prettier": "3.0.0",
3638
"eslint-plugin-react": "7.11.1",
3739
"nodemon": "1.18.4",
38-
"eslint-config-prettier": "3.3.0",
39-
"eslint-plugin-prettier": "3.0.0",
4040
"prettier": "1.15.3"
4141
}
42-
}
42+
}

book/3-start/yarn.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,11 @@ base64-js@^1.0.2:
13311331
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3"
13321332
integrity sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==
13331333

1334+
1335+
version "3.0.1"
1336+
resolved "https://registry.yarnpkg.com/base64url/-/base64url-3.0.1.tgz#6399d572e2bc3f90a9a8b22d5dbb0a32d33f788d"
1337+
integrity sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==
1338+
13341339
base@^0.11.1:
13351340
version "0.11.2"
13361341
resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
@@ -4847,20 +4852,20 @@ [email protected]:
48474852
dependencies:
48484853
passport-oauth1 "1.x.x"
48494854

4850-
passport-google-oauth20@1.x.x:
4851-
version "1.0.0"
4852-
resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-1.0.0.tgz#3b960e8a1d70d1dbe794615c827c68c40392a5d0"
4853-
integrity sha1-O5YOih1w0dvnlGFcgnxoxAOSpdA=
4855+
passport-google-oauth20@2.x.x:
4856+
version "2.0.0"
4857+
resolved "https://registry.yarnpkg.com/passport-google-oauth20/-/passport-google-oauth20-2.0.0.tgz#0d241b2d21ebd3dc7f2b60669ec4d587e3a674ef"
4858+
integrity sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==
48544859
dependencies:
48554860
passport-oauth2 "1.x.x"
48564861

4857-
passport-google-oauth@1.0.0:
4858-
version "1.0.0"
4859-
resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-1.0.0.tgz#65f50633192ad0627a18b08960077109d84eb76d"
4860-
integrity sha1-ZfUGMxkq0GJ6GLCJYAdxCdhOt20=
4862+
passport-google-oauth@2.0.0:
4863+
version "2.0.0"
4864+
resolved "https://registry.yarnpkg.com/passport-google-oauth/-/passport-google-oauth-2.0.0.tgz#f6eb4bc96dd6c16ec0ecfdf4e05ec48ca54d4dae"
4865+
integrity sha512-JKxZpBx6wBQXX1/a1s7VmdBgwOugohH+IxCy84aPTZNq/iIPX6u7Mqov1zY7MKRz3niFPol0KJz8zPLBoHKtYA==
48614866
dependencies:
48624867
passport-google-oauth1 "1.x.x"
4863-
passport-google-oauth20 "1.x.x"
4868+
passport-google-oauth20 "2.x.x"
48644869

48654870
48664871
version "1.1.0"
@@ -4872,10 +4877,11 @@ [email protected]:
48724877
utils-merge "1.x.x"
48734878

48744879
4875-
version "1.4.0"
4876-
resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.4.0.tgz#f62f81583cbe12609be7ce6f160b9395a27b86ad"
4877-
integrity sha1-9i+BWDy+EmCb585vFguTlaJ7hq0=
4880+
version "1.5.0"
4881+
resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.5.0.tgz#64babbb54ac46a4dcab35e7f266ed5294e3c4108"
4882+
integrity sha512-kqBt6vR/5VlCK8iCx1/KpY42kQ+NEHZwsSyt4Y6STiNjU+wWICG1i8ucc1FapXDGO15C5O5VZz7+7vRzrDPXXQ==
48784883
dependencies:
4884+
base64url "3.x.x"
48794885
oauth "0.9.x"
48804886
passport-strategy "1.x.x"
48814887
uid2 "0.0.x"

book/4-end/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"next": "7.0.2",
2828
"nprogress": "0.2.0",
2929
"passport": "0.4.0",
30-
"passport-google-oauth": "1.0.0",
30+
"passport-google-oauth": "2.0.0",
3131
"prop-types": "15.6.2",
3232
"react": "16.6.0",
3333
"react-dom": "16.6.0",

book/4-end/server/google.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function auth({ ROOT_URL, server }) {
3535
clientID: process.env.Google_clientID,
3636
clientSecret: process.env.Google_clientSecret,
3737
callbackURL: `${ROOT_URL}/oauth2callback`,
38-
userProfileURL: 'https://www.googleapis.com/oauth2/v3/userinfo',
3938
},
4039
verify,
4140
),

0 commit comments

Comments
 (0)