Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Show SSO login button behind feature flag

Joshen Lim83341cbc3c6c
diff --git a/studio/components/interfaces/SignIn/SignInWithSSO.tsx b/studio/components/interfaces/SignIn/SignInWithSSO.tsx
index c81ce30af43..913aafb6500 100644
--- a/studio/components/interfaces/SignIn/SignInWithSSO.tsx
+++ b/studio/components/interfaces/SignIn/SignInWithSSO.tsx
@@ -1,12 +1,14 @@
import Link from 'next/link'
-import { Button } from 'ui'
+import { Button, IconLock } from 'ui'
const SignInWithSSO = () => {
return (
<Link href="/sign-in-sso">
- <Button block size="small" type="text">
- Continue with SSO
- </Button>
+ <a>
+ <Button block size="large" type="outline" icon={<IconLock width={18} height={18} />}>
+ Continue with SSO
+ </Button>
+ </a>
</Link>
)
}
diff --git a/studio/pages/sign-in.tsx b/studio/pages/sign-in.tsx
index d3b3b19b5ce..5dde21d86e1 100644
--- a/studio/pages/sign-in.tsx
+++ b/studio/pages/sign-in.tsx
@@ -1,15 +1,20 @@
+import Link from 'next/link'
+
+import { useFlag } from 'hooks'
+import { NextPageWithLayout } from 'types'
import SignInForm from 'components/interfaces/SignIn/SignInForm'
import SignInWithGitHub from 'components/interfaces/SignIn/SignInWithGitHub'
+import SignInWithSSO from 'components/interfaces/SignIn/SignInWithSSO'
import { SignInLayout } from 'components/layouts'
-import Link from 'next/link'
-import { NextPageWithLayout } from 'types'
const SignInPage: NextPageWithLayout = () => {
+ const showSsoLogin = useFlag('mfaSso')
+
return (
<>
<div className="flex flex-col gap-5">
<SignInWithGitHub />
- {/* <SignInWithSSO /> */}
+ <SignInWithSSO />
<div className="relative">
<div className="absolute inset-0 flex items-center">