Supabase
p/supabase
The open source Firebase alternative
Jonny Summers-Muir

Pre-built Auth UI for React β€” Install Auth UI and start authenticating users with Supabase

Featured
102
β€’
Auth UI is a pre-built React component for authenticating users with Supabase Auth. It supports custom themes and extensible styles to match your brand and aesthetic.
Replies
Best
Jonny Summers-Muir
Hey friends! πŸ‘‹ (It's been a while!) Some of you may already know, Auth UI started out as a component called `Auth` in our Supabase UI GitHub repository. We saw lots of developers we're using the (quite large) `supabase/ui` package just so they could use the Auth component. We decided to double down our efforts on that component, we moved it to it's own repository, and renamed it Auth UI. We've also added a bunch of features developers we're demanding from us... πŸ’… Pre built themes
 - We will be making pre-made themes so you can get going right away. No styling necessary.
 🧰 Extend appearance of theme - 
Not happy with the prebuilt themes? Override variables from prebuilt themes with your own styles. πŸŒ“ Theme sets (dark mode) - 
Extend and configure multiple sets of styles in a single theme. That means you can include dark mode, light mode, sepia mode...
 ✏️ Custom css classes and inline styles - Inject css classes so you can target specific elements and also inline styles. A prepended ClassName can also be added to all elements. πŸ“£ Custom labels - 
Use your own text for any of the labels, so you can now accommodate for various languages, or perhaps different tones of voice. What's the future of Auth UI? We'd like to keep working on this and improve it for more use cases such as: πŸ“ž Phone auth - Support for Supabase Phone Auth, so a user can input their OTP into the Auth UI to log in. πŸ— More frameworks - We've only shipped React so far, but we've had requests for Svelte and Flutter support. πŸͺͺ Profile UI - Perhaps prebuilt UI for viewing user information, user profile, and user actions to update password, update details and so on. One more thing...It's all open source. View all the code here right now on GitHub. Also a shout out to stiches.js. We used it to make the customization part possible. πŸͺ‘ --- Thanks everyone. Feel free to leave your positive (and negative) feedback and comments. Jonny, Supabase team
Rohan Chaubey
@jon_summers_muir Congrats. Discovered the product on our Invincible Product Hunters community. :)
Uladzimir Yankovich
@jon_summers_muir Hi, great product. Tell me, do you have an out-of-the-box authorization solution for V3 browser extensions?
Jonny Summers-Muir
@rohanrecommends ahh great. Thor shared it I think?
Ant Wilson
The mac theme is my favorite haha
Thor Schaeff
Top Product
Maker
@antwilson reminds me of something πŸ˜‚
Jonny Summers-Muir
@antwilson @schaeff_t I should of added that this was quite inspired by Stripe Elements :D
Jonny Summers-Muir
@antwilson wonder who made these... πŸ‘€
Collin Thompson
@antwilson thank you, I can’t express to you in words how helpful this is. Nice work! I’m gonna try it out now.
Brittany Joiner {Britt the Builder}
I'm always on the lookout for tools that make my dev life easier and help me build cool stuff without having to remember how to do a million things. This looks really cool! Saving to my list to check out. Congrats on the launch!
Jonny Summers-Muir
@britt_joiner woo, thanks for the list save!
Joshen Lim
This looks really amazing! Is there a possible timeline for when support for Flutter might be ready? Keen to try it out in my next project
Jonny Summers-Muir
@joshenjlek I'll check the issues in GitHub, we had a contributor that might had been interested in porting this to flutter. Will need to have a look.
Thor Schaeff
Top Product
Maker
@joshenjlek Flutter Auth UI is being worked on here: https://github.com/supabase-comm... Thanks to many awesome community contributors πŸ’š
Thor Schaeff
Top Product
Maker
Hey friends, we're constantly aiming to make Auth as easy as possible and this is another step into that direction. Let us know if this is useful for you and what features you would like to see. Thanks :)
Jonny Summers-Muir
@schaeff_t πŸ™ŒπŸ™ŒπŸ™Œ
Michel
Great stuff! Been trying out Supabase for a recent project and so far very happy. The documentation across the site needs cleaning up, though. For example, there are multiple versions of Auth floating around and one of em is deprecated? Another one only works with an older version of React. That's all a bit confusing.
Jonny Summers-Muir
@mictuc Yea, we're in the process of upgrading things to supabase-js v2. Got any links to the docs pages you're struggling with? we can prioritize getting those looked at.
Michel
@jon_summers_muir Did a night session and managed to upgrade to V2 of Supabase. Think the comment section is not ideal for this, but as an example for Auth: * https://supabase.com/docs/reference * https://supabase.com/docs/refere... * https://supabase.com/docs/refere... * https://supabase.com/docs/guides... * https://ui.supabase.io/component... * https://supabase.com/docs/guides... All talk about somewhat the same thing, but have different approaches and rely on different versions. The to-do example (https://github.com/supabase/supa...) was recently updated, but is very outdated when it comes to the approach. Overall, was fun to work with Supabase, but the documentation is frustrating at times. I think Gatsby has a great approach, as their docs are up-to-date 99% of the time.
Kiran K
Looks great! I've used the Supabase UI with a Next.js project. It was simple and easy to use. Auth UI looks awesome.
Jonny Summers-Muir
@kiran_k1 Oh nice! Would you be up for migrating to this new version? Would love to hear what it was like, we might need a migration guide.
Kiran K
@jon_summers_muir Sure, I'll try out the new Auth UI when I've time. A migration guide would be valuable.
Ramiro NuΓ±ez Dosio
Love to see this one out! Auth UI is a great and fast way to get auth working while also matching your brand and aesthetic πŸ€πŸ’― Can't wait to see what the community builds with it!
Jonny Summers-Muir
@ramiro_nunez_dosio yea, the theming was such a big request. Everybody needs it really.
Ivan Kavalerov
Love this! I have so many snippets of code for this that I am taking from project to project, glad to see this done properly in a such a modular way. (And yes, Mac theme is the best πŸ˜…)
Jonny Summers-Muir
@flybirdx101 Haven't actually added the mac theme into the repo yet, I'll get round to it at some point πŸ˜…
Ivan Kavalerov
@jon_summers_muir I know, just @antwilson 's screenshot in the other thread was very convincing :)
Inian Parameshwaran
What was the rationale behind deprecating supabase/ui and splitting auth UI to its own package?
Jonny Summers-Muir
hey @everconfusedguy ! Some of you may already know, but Auth UI was a component called `Auth` in our Supabase UI GitHub repository. To my genuine surprise (I didn't think anyone would use it) we saw a lot of developers using the component in their own apps without using any other components. They were also applying custom hacks to change various styling or to replace text in the labels. It made sense to properly support the Auth component as a standalone package, and also remove it from a package that was primarily a library of radix react components that were styled with tailwind. We also didn't want to force developers to use Tailwind just to install a UI component. Now that it is in its own repo and package, we can probably also think about supporting other frameworks more easily like Svelte and Flutter.
Thor Schaeff
Top Product
Maker
@everconfusedguy @jon_summers_muir also would love to get the Vue community involved with this πŸ₯³
Wen Bo Xie
Wow, this looks amazing! Congrats on the launch! I'm an engineer on the Supabase Realtime team and we're currently building an app with Phoenix LiveView that'll make it easier for developers to play with and debug their Realtime functionality. I was just thinking about adding auth as next steps so developers can sign in and select their projects without manually having to copy/paste. We'll explore integrating this swanky auth UI component into the LiveView app and drop some feedback. Keep up the great work!
kiwicopple
This is cool @jon_summers_muir , but wen Auth Pages?
Jonny Summers-Muir
@copple I heard a launch week 6 rumour πŸ˜‰
Paul Cioanca
This looks amazing! The added theming flexibility, and that it got spun out due to how developers were previously using it, is just fantastic. Love that the community has a voice when it comes to Supabase!
Jonny Summers-Muir
@_pcnc There were a few issues popping up on GitHub and I was also seeing some weird hacks developers were trying just to do something like change a label. Hopefully this is a step in the right direction πŸ˜…
Christian Wierzbicki
I love Supabase. So happy to see this launch. They ship so frequently and never compromise on quality. Also highly recommend the Happy Hour show :)
Jonny Summers-Muir
@christian_wierzbicki1 the Happy Hour show is awesome!! The team are so consistent with it each week
Tyler Shukert
Will there be docs around how to use this auth UI library?
Jonny Summers-Muir
@dshukertjr Absolutely. I made a start on the Auth UI docs here. Would welcome any edits as well
Terry Sutton
Setting up auth was definitely the hardest part the last time I built a project with Supabase. Really excited to see this in the wild. Great stuff!
Jonny Summers-Muir
@saltcod woo. thanks!
Andrii Bas
thanks a lot. Love Supabase, it's awesome 😍
Jonny Summers-Muir
@bass_andriy woop! that's great. thanks!
Binay Singh
This is amazing!! @rahul_mehta17 can check this out. Congratulations on the guys!!
Jonny Summers-Muir
@binay_sing2 cheers!
Shreyanshi Gupta
Will definitely try this out, congratulations!
Jonny Summers-Muir
@shreyanshi_gupta1 thanks πŸ‘
Alaister Young
Very happy to see a new version of Auth UI to go along with V2 of supabase-js!
Jonny Summers-Muir
@alaisteryoung upgraded it now to v2. Courtesy of Thor!