fix: get user loggedin if accouont is found + add better error handling for new user creation (#19229)
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user