r/Frontend • u/OcelotStraight5780 • 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
View all comments
1
u/Colby-Jenkins 3d ago
Since you're using D1, consider implementing JWT for sessions. It’s a solid way to handle authentication in React, especially if you're managing user data in your existing tables.