fix: password error when using gmail auth

This commit is contained in:
Miodec 2024-02-18 18:34:23 +01:00
parent fc925a7e55
commit 54cb9c9e17

View file

@ -434,8 +434,9 @@ async function reauthenticate(
const user = getAuthenticatedUser();
try {
const passwordAuthEnabled =
user.providerData.some((p) => p?.providerId === "password") !== undefined;
const passwordAuthEnabled = user.providerData.some(
(p) => p?.providerId === "password"
);
if (!passwordAuthEnabled && method === "passwordOnly") {
return {