The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: Pass searchParams during SignInWithSSO rendering (#19171)
Kamil Ogórek572cb683fe47
diff --git a/apps/studio/components/interfaces/SignIn/SignInWithSSO.tsx b/apps/studio/components/interfaces/SignIn/SignInWithSSO.tsxindex 65583954444..da8c5a09ae8 100644--- a/apps/studio/components/interfaces/SignIn/SignInWithSSO.tsx+++ b/apps/studio/components/interfaces/SignIn/SignInWithSSO.tsx@@ -1,10 +1,17 @@import Link from 'next/link'import { Button, IconLock } from 'ui'-const SignInWithSSO = () => {+const SignInWithSSO = ({ searchParams }: { searchParams?: string }) => {return (<Button asChild block size="large" type="outline" icon={<IconLock width={18} height={18} />}>- <Link href="/sign-in-sso">Continue with SSO</Link>+ <Link+ href={{+ pathname: '/sign-in-sso',+ query: searchParams,+ }}+ >+ Continue with SSO+ </Link></Button>)}diff --git a/apps/studio/pages/sign-in.tsx b/apps/studio/pages/sign-in.tsxindex 8a1fbdf37a0..b1e4b2bacb6 100644--- a/apps/studio/pages/sign-in.tsx+++ b/apps/studio/pages/sign-in.tsx@@ -11,6 +11,8 @@ import { NextPageWithLayout } from 'types'const SignInPage: NextPageWithLayout = () => {const router = useRouter()+ const searchParams = new URLSearchParams(router.query as Record<string, string>).toString()+useEffect(() => {if (!IS_PLATFORM) {// on selfhosted instance just redirect to projects page@@ -22,7 +24,7 @@ const SignInPage: NextPageWithLayout = () => {<><div className="flex flex-col gap-5"><SignInWithGitHub />- <SignInWithSSO />+ <SignInWithSSO searchParams={searchParams} /><div className="relative"><div className="absolute inset-0 flex items-center">