From b8bbbf3ec2c224df4d245384d8cb8e521599a848 Mon Sep 17 00:00:00 2001 From: Pierre Marais Date: Mon, 6 Jan 2025 12:57:32 +0100 Subject: [PATCH] Return no data when auth fails --- app/routes/_index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index cbee166..941bd4d 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -36,7 +36,10 @@ async function authUserRemixOAuth(request: Request) { }); } catch (error) { console.error("Authentication error:", error); + return data(null); } + } else { + return data(null); } }