feat: Upgrade to Parse JS SDK 5 (#9022)

This commit is contained in:
Daniel
2024-03-17 14:08:52 +11:00
committed by GitHub
parent 1c2bb7ca28
commit ad4aa83983
3 changed files with 75 additions and 60 deletions

View File

@@ -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');
}