Can someone tell me the best way to go about this problem? My site will have one admin user (there will be NO OTHER users) to be able to CRUD data on the /admin route after the admin logs in. I found this tutorial: https://tylermcginnis.com/react-router-protected-routes-authentication/
but it gave me no luck as I don’t understand the point of the fakeAuth function. Wouldn’t I need to wrap it all into a cookie/JWT? I know I need backend auth somehow and I have the username and pass stored in an environment variable. Just very curious as to how to get a basic backend auth for the admin user, then use react router to redirect after the auth is verified. Any help on this would be much appreciated.