diff --git a/web/pages/signin.tsx b/web/pages/signin.tsx index ddfe719aa3..a201ff95a3 100644 --- a/web/pages/signin.tsx +++ b/web/pages/signin.tsx @@ -8,6 +8,7 @@ import { supabaseServer } from "../lib/supabaseServer"; import { Result, err, ok } from "../lib/result"; import PublicMetaData from "../components/layout/public/publicMetaData"; import { useEffect } from "react"; +import { InfoBox } from "../components/ui/helicone/infoBox"; // Import InfoBox export type CustomerPortalContent = { domain: string; @@ -55,50 +56,59 @@ const SignIn = ({ return ( - { - const { data, error } = await supabase.auth.signInWithPassword({ - email: email, - password: password, - }); +
+
+ <>} className="flex flex-col"> + + We are having issues with auth right now, we'll be back soon. + + +
+ { + const { data, error } = await supabase.auth.signInWithPassword({ + email: email, + password: password, + }); - if (error) { - setNotification("Error logging in. Please try again.", "error"); - console.error(error); - return; - } - setNotification("Success. Redirecting...", "success"); - router.push("/dashboard"); - }} - handleGoogleSubmit={async () => { - const { error } = await supabase.auth.signInWithOAuth({ - provider: "google", - }); - if (error) { - setNotification("Error logging in. Please try again.", "error"); - console.error(error); - return; - } - setNotification("Successfully signed in.", "success"); - }} - handleGithubSubmit={async () => { - const { error } = await supabase.auth.signInWithOAuth({ - provider: "github", - }); - if (error) { - setNotification("Error logging in. Please try again.", "error"); - console.error(error); - return; - } - setNotification("Successfully signed in.", "success"); - }} - authFormType={"signin"} - customerPortalContent={customerPortalContent} - /> + if (error) { + setNotification("Error logging in. Please try again.", "error"); + console.error(error); + return; + } + setNotification("Success. Redirecting...", "success"); + router.push("/dashboard"); + }} + handleGoogleSubmit={async () => { + const { error } = await supabase.auth.signInWithOAuth({ + provider: "google", + }); + if (error) { + setNotification("Error logging in. Please try again.", "error"); + console.error(error); + return; + } + setNotification("Successfully signed in.", "success"); + }} + handleGithubSubmit={async () => { + const { error } = await supabase.auth.signInWithOAuth({ + provider: "github", + }); + if (error) { + setNotification("Error logging in. Please try again.", "error"); + console.error(error); + return; + } + setNotification("Successfully signed in.", "success"); + }} + authFormType={"signin"} + customerPortalContent={customerPortalContent} + /> +
); }; diff --git a/web/pages/signup.tsx b/web/pages/signup.tsx index 86445644f3..ad2a912da0 100644 --- a/web/pages/signup.tsx +++ b/web/pages/signup.tsx @@ -10,6 +10,7 @@ import PublicMetaData from "../components/layout/public/publicMetaData"; import { GetServerSidePropsContext } from "next"; import posthog from "posthog-js"; import { InfoBanner } from "../components/shared/themed/themedDemoBanner"; +import { InfoBox } from "../components/ui/helicone/infoBox"; const SignUp = () => { const supabase = useSupabaseClient(); @@ -39,6 +40,13 @@ const SignUp = () => { ogImageUrl={"https://www.helicone.ai/static/helicone-og.webp"} > {demo === "true" && } +
+ <>} className="flex flex-col"> + + We are having issues with auth right now, we'll be back soon. + + +
{ const origin = window.location.origin;