
Introduction
One of the challenging things to build in an application is Authentication. It is a process of identifying the user. We do ...
For further actions, you may consider blocking this person and/or reporting abuse
This is a great tutorial Suraj! Would love to see more Supabase content!
For everyone who is looking into using Supabase Auth, you should also check out supastarter.dev to get started faster and save a ton of time! It's a boilerplate that already integrates the functionality shown in this awesome article!
Thanks, Jonathan. Supastarter looks nice tool! I have seen its growth recently through your Twitter account and Congrats on that🥳
Great article 👏 , but you forgot to pass dependency array for useEffect.
Need not to pass any dependent array as we need to run the function in
useEffect
only when the page loaded.But that will cause the function on each render, while passing the dependency array will make it run once in component's lifetime, No?
Yep, useEffect runs on every re-render. But since we are not changing state, It won't render again and again. If you want, you can pass a state that looks for changes in the session or AuthState.
Which cool feature of Supabase do you use frequently?
I am basically using every feature of Supabase from Auth over Functions to Storage. Just love how simple it is to get everything set up and have Supabase manage the backend (and also its scaling) for you!
Really excited for what's coming in Supabase Launch Week 6!
I recently started using the Database along with Authentication. I totally agree on how easy and simple is to set up supabase for your project.
A really great project
Thanks 🙏