Skip to content

Commit ad4aa83

Browse files
authored
feat: Upgrade to Parse JS SDK 5 (#9022)
1 parent 1c2bb7c commit ad4aa83

File tree

3 files changed

+75
-60
lines changed

3 files changed

+75
-60
lines changed

package-lock.json

+73-59
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"mongodb": "5.9.0",
5050
"mustache": "4.2.0",
5151
"otpauth": "9.2.2",
52-
"parse": "4.1.0",
52+
"parse": "5.0.0",
5353
"path-to-regexp": "6.2.1",
5454
"pg-monitor": "2.0.0",
5555
"pg-promise": "11.5.4",

src/RestWrite.js

+1
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ RestWrite.prototype.handleAuthData = async function (authData) {
548548
const userResult = results[0];
549549
// Prevent duplicate authData id
550550
if (userId && userId !== userResult.objectId) {
551+
await Auth.handleAuthDataValidation(authData, this, results[0]);
551552
throw new Parse.Error(Parse.Error.ACCOUNT_ALREADY_LINKED, 'this auth is already used');
552553
}
553554

0 commit comments

Comments
 (0)