Skip to content

Commit

Permalink
feat: Upgrade to Parse JS SDK 5 (#9022)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Mar 17, 2024
1 parent 1c2bb7c commit ad4aa83
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 60 deletions.
132 changes: 73 additions & 59 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"mongodb": "5.9.0",
"mustache": "4.2.0",
"otpauth": "9.2.2",
"parse": "4.1.0",
"parse": "5.0.0",
"path-to-regexp": "6.2.1",
"pg-monitor": "2.0.0",
"pg-promise": "11.5.4",
Expand Down
1 change: 1 addition & 0 deletions src/RestWrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ RestWrite.prototype.handleAuthData = async function (authData) {
const userResult = results[0];
// Prevent duplicate authData id
if (userId && userId !== userResult.objectId) {
await Auth.handleAuthDataValidation(authData, this, results[0]);
throw new Parse.Error(Parse.Error.ACCOUNT_ALREADY_LINKED, 'this auth is already used');
}

Expand Down

0 comments on commit ad4aa83

Please sign in to comment.