I have created a authentication and authorization system before with asp net core mvc and razor pages
I would create a cookie that would be connected to my database to check if someone is still loged in
and who would be able to get acces.
Now I have heard about JWT wich seems to be a much better way to authenticate a website
since it would no longer be needed to store it on the server since all the information is in the Token
and you can work with multiple servers without the user having to login again.
I have seen some sevices like AUth0 wich seems to handle all the heavy lifting including
login with facebook, google etc as well as two factor authentication every thing seems to be already done
But i think it does take a away the flexibilty of a fullstack developer and there is price tag on those services.
I would like to know what would be the choice for a full-stack developer (using Reactjs)
And what would be the best to learn and use in the future when for example working for a company.
also please correct me if im wrong im trying to orientate the most professional way to handle authentication and authorization.