From 31455448b0e73ef6f881624ebde4f6f4d92d08cd Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Tue, 15 Jul 2025 17:57:32 +0800 Subject: [PATCH] chore: toast auth initialization errors (#37037) * chore: toast auth initialization errors * Redirect back to sign in if authentication fails * add debug logs * remove debug logs * debug gotrue * remove gotrue debug --- .../layouts/AuthenticationLayout.tsx | 2 +- .../SignInLayout/ForgotPasswordLayout.tsx | 2 +- .../layouts/SignInLayout/SignInLayout.tsx | 2 +- apps/studio/lib/auth.tsx | 34 +++++++++++++------ apps/studio/pages/sign-in-mfa.tsx | 13 +++++-- packages/common/auth.tsx | 33 +++++++++++++++--- 6 files changed, 65 insertions(+), 21 deletions(-) diff --git a/apps/studio/components/layouts/AuthenticationLayout.tsx b/apps/studio/components/layouts/AuthenticationLayout.tsx index 60ad670513..8f1f32dd30 100644 --- a/apps/studio/components/layouts/AuthenticationLayout.tsx +++ b/apps/studio/components/layouts/AuthenticationLayout.tsx @@ -6,7 +6,7 @@ import { AppBannerContextProvider } from 'components/interfaces/App/AppBannerWra export const AuthenticationLayout = ({ children }: PropsWithChildren<{}>) => { return ( -
+
{children}
diff --git a/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx b/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx index 2973ef53b7..8723843fd1 100644 --- a/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx +++ b/apps/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx @@ -21,7 +21,7 @@ const ForgotPasswordLayout = ({ const { resolvedTheme } = useTheme() return ( -
+