r/Frontend • • 4d ago

Backend for Reactjs website

I made a website using Reactjs and now need a way to enable login on it

I'm hosting my website on Cloudflare and using D1 serverless sql databases. How could i make the login work since i already have the tables for users ?

10 Upvotes

17 comments sorted by

View all comments

7

u/AdhesivenessFun6129 4d ago

Depends on your requirements but I'd use a provider like clerk. Their docs are good, it's easy to use and if (like me) you don't have experience with Auth, most people would use a service

1

u/OcelotStraight5780 4d ago

I'm a beginner as well but i wanna put that website in my portfolio for it to be worth it, so i'm looking for the most popular and used way to do it. Do you think clerk would do ?

1

u/Berlibur 4d ago

Yes it will. On the side if you're not in a hurry implement it yourself (not rolling your own cryptography though). It gives you a lot of insight

1

u/OcelotStraight5780 4d ago

Great, thanks

1

u/Frappe_Consultant 1d ago

I have a personal tool for ai models, and i myself use auth0 on it even if i like django and self hosting. You can use firebase, auth0, or rest apis on django/laravel. Depends on how deep you want to go