© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
4 replies
Zeph

Auth UI not working

Hi! I followed the documentation to create a login page using Supabase's Auth UI. My code looks like this:
import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
import { useSupabaseClient } from '@supabase/auth-helpers-react'

export default function Login() {
  const supabaseClient = useSupabaseClient()
  return (
    <Auth
      supabaseClient={supabaseClient}
      appeararance={{ theme: ThemeSupa }}
      theme="dark"
      socialLayout='horizontal'
      redirectTo="http://localhost:3000/"
    />
  )
}
import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
import { useSupabaseClient } from '@supabase/auth-helpers-react'

export default function Login() {
  const supabaseClient = useSupabaseClient()
  return (
    <Auth
      supabaseClient={supabaseClient}
      appeararance={{ theme: ThemeSupa }}
      theme="dark"
      socialLayout='horizontal'
      redirectTo="http://localhost:3000/"
    />
  )
}

But my UI ends up looking like the image attached.
Also, the redirect does not work. I am still able to login and logout but its just the styling and redirect that is the issue.

Thank you!
ksnip_20221115-165224.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Auth not working
SupabaseSSupabase / help-and-questions
3mo ago
Auth not working
SupabaseSSupabase / help-and-questions
3mo ago
Auth Ui
SupabaseSSupabase / help-and-questions
4y ago
auth.updateUser not working
SupabaseSSupabase / help-and-questions
13mo ago