fix: Rare unable to login case

This commit is contained in:
Tom Moor
2023-04-18 22:14:58 -04:00
parent 961afe7dc5
commit f4206f888c

View File

@@ -111,12 +111,12 @@ async function accountProvisioner({
}
}
if (err.id) {
throw err;
}
if (!result) {
throw InvalidAuthenticationError(err.message);
if (err.id) {
throw err;
} else {
throw InvalidAuthenticationError(err.message);
}
}
}