Hey guys, the corresponding article can be found here:
https://blog.bitsrc.io/build-a-login-...
After some research, turned out that JWT (json web token)'s primary job is identifying who is sending the api calls. Once the user is authenticated, we give them a token, and when the user makes an api call, we test that token to make sure the user is verified. This is because we don't want random people making a million requests to some actions that only authenticated users are allowed to do. This will come more into play when we do build actions that we probably only want authenticated users to do.
Смотрите видео Build a Login/Auth app with MERN #1: Making Server and Backend онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Andrew Chen 14 Март 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,719 раз и оно понравилось 90 людям.