A
A
AzamatWD2021-09-27 11:51:36
Frontend
AzamatWD, 2021-09-27 11:51:36

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

2 answer(s)
M
MamaLuyba, 2021-09-27
@AzamatWD

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.

V
Vasily Vasilyev, 2021-10-12
@Basil_Dev

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 question

Ask a Question

731 491 924 answers to any question