Authentication with separate frontend and backend

Hi, I've had some attempts at creating a car marketplace app using React as frontend framework and Express on backend, but I dont know how to approach authentication. I don't want to use JWT's like every tutorial does, it seems to be exaggeration for my case. I've also tried using Spring for backend, but it's too complex. So, the question is: how to integrate frontend and backend session, so data is consistent(for example, when user changes name, the react app updates it). A good tutorial or a github repo could help as well. Sorry if I'm asking in the wrong category, but I there's no better one. Thanks in advance!
4 Replies
Chief
Chief4d ago
so like you need realtime updates?
Viroz
VirozOP4d ago
what I meant is that whenever my user makes a request, the server checks their permission level, credentials and stuff like that
Chief
Chief3d ago
If jwt isn't fitting your use case, what did you else look for? you can use expression-session package
Viroz
VirozOP3d ago
thanks, that's what I was looking for.
Want results from more Discord servers?
Add your server