mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
fix: password error when using gmail auth
This commit is contained in:
parent
fc925a7e55
commit
54cb9c9e17
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue