From 50bc84fa1f0993557555f6fabd6b0bda4fb2ba64 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 12 Sep 2025 00:20:05 +0200 Subject: [PATCH] Fix "true" passed instead of boolean for multiAuth (#2512) * Fix "true" passed instead of boolean for multiAuth * Fix false as default --- components/login.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/login.js b/components/login.js index 51f91594..b690439a 100644 --- a/components/login.js +++ b/components/login.js @@ -75,6 +75,8 @@ export default function Login ({ providers, callbackUrl, multiAuth, error, text, const [errorMessage, setErrorMessage] = useState(authErrorMessage(error, signin)) const router = useRouter() + multiAuth = typeof multiAuth === 'string' ? multiAuth === 'true' : !!multiAuth + // signup/signin awareness cookie useEffect(() => { // expire cookie if we're on /signup instead of /login