We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4fe19a commit 278027aCopy full SHA for 278027a
src/authDataManager/google.js
@@ -5,7 +5,7 @@ var Parse = require('parse/node').Parse;
5
function validateIdToken(id, token) {
6
return request("tokeninfo?id_token="+token)
7
.then((response) => {
8
- if (response && response.sub == id) {
+ if (response && (response.sub == id || response.user_id == id)) {
9
return;
10
}
11
throw new Parse.Error(
@@ -17,7 +17,7 @@ function validateIdToken(id, token) {
17
function validateAuthToken(id, token) {
18
return request("tokeninfo?access_token="+token)
19
20
- if (response && response.user_id == id) {
21
22
23
0 commit comments