sign-in-sso.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { SignInSSOForm } from '@/components/interfaces/SignIn/SignInSSOForm'
  2. import SignInLayout from '@/components/layouts/SignInLayout/SignInLayout'
  3. import { UnknownInterface } from '@/components/ui/UnknownInterface'
  4. import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'
  5. import type { NextPageWithLayout } from '@/types'
  6. const SignInSSOPage: NextPageWithLayout = () => {
  7. const signInWithSSOEnabled = useIsFeatureEnabled('dashboard_auth:sign_in_with_sso')
  8. if (!signInWithSSOEnabled) {
  9. return <UnknownInterface fullHeight={false} urlBack="/sign-in" />
  10. }
  11. return (
  12. <>
  13. <div className="flex flex-col gap-5">
  14. <SignInSSOForm />
  15. </div>
  16. <div className="my-8 self-center text-sm">
  17. <div>
  18. <span className="text-foreground-light">Interested in SSO?</span>{' '}
  19. <a
  20. href="https://supabase.com/contact/enterprise"
  21. rel="noopener noreferrer"
  22. className="underline text-foreground hover:text-foreground-light transition"
  23. >
  24. Let us know
  25. </a>
  26. </div>
  27. </div>
  28. </>
  29. )
  30. }
  31. SignInSSOPage.getLayout = (page) => (
  32. <SignInLayout
  33. heading="Welcome back"
  34. subheading="Sign in to your enterprise account"
  35. logoLinkToMarketingSite={true}
  36. >
  37. {page}
  38. </SignInLayout>
  39. )
  40. export default SignInSSOPage