fix: get user loggedin if accouont is found + add better error handling for new user creation (#19229)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-02-11 11:41:18 +00:00
1 parent 662ba8dfc6
commit cdb57eaa59
2 files changed
+39 -29

No files matched your search

@@ -21,7 +21,7 @@ const querySchema = z.object({
const ServerPage = async ({ searchParams }: PageProps) => {
const t = await getTranslate();
const { error } = querySchema.parse({ error: searchParams?.error || undefined });
const errorMsg = error || t("error_during_login");
const errorMsg = t("error_during_login") + (error ? ` Error code: ${error}` : "");
return (
<AuthContainer title="" description="" isAppDir={true}>
<div>