DEV Community

Cover image for How I build Register and Login page using Supabase

How I build Register and Login page using Supabase

Suraj Vishwakarma on December 06, 2022

Introduction One of the challenging things to build in an application is Authentication. It is a process of identifying the user. We do ...
Collapse
 
jonathanwilke profile image
Jonathan Wilke

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!

Collapse
 
surajondev profile image
Suraj Vishwakarma

Thanks, Jonathan. Supastarter looks nice tool! I have seen its growth recently through your Twitter account and Congrats on that🥳

Collapse
 
itskarim profile image
Karim

Great article 👏 , but you forgot to pass dependency array for useEffect.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Need not to pass any dependent array as we need to run the function in useEffect only when the page loaded.

Collapse
 
itskarim profile image
Karim

But that will cause the function on each render, while passing the dependency array will make it run once in component's lifetime, No?

Thread Thread
 
surajondev profile image
Suraj Vishwakarma

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.

Collapse
 
surajondev profile image
Suraj Vishwakarma

Which cool feature of Supabase do you use frequently?

Collapse
 
jonathanwilke profile image
Jonathan Wilke

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!

Collapse
 
surajondev profile image
Suraj Vishwakarma

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.

Collapse
 
gamerseo profile image
Gamerseo

A really great project

Collapse
 
surajondev profile image
Suraj Vishwakarma

Thanks 🙏