Answer the question
In order to leave comments, you need to log in
How to implement admin login?
I do SPA. The customer does not have a server, so I use mockapi for data. There is only a list of people and that's it. I'm making a website with React. I need to make an admin. I can make an admin panel, but here you need to log in to this admin panel, the admin panel opens at https://domen.com/admin . You need to login with a username and password. You can do a password check through the front, but it's not safe, is it? How can I log in, check the login and password for correctness. Are there any servers?
Answer the question
In order to leave comments, you need to log in
safe - it's about backing. if it is not there, there is no security. if you're doing it locally, what difference does it make if it's safe or not? then there will be a backing and you will do it normally.
As an option, you connect firebase auth , and write middleware in the application so that it checks authorization for each sneeze. You store the data somewhere on mongodb (accesses are somewhere in the environment variables, you can set up github pages up to github pages), if authorization is successful, you pull the data with ajax.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question