Answer the question
In order to leave comments, you need to log in
What is the best way to implement authentication on the site?
The question arose of implementing user authentication on the site.
I planned to make standard authentication using sessions, but more and more often I see information about the use of tokens, whether it makes sense and where you can read about it with a normal description. It is planned to simply authenticate users on one site
Answer the question
In order to leave comments, you need to log in
If you need to implement REST technology, or plan to use it in conditions where there are no cookies, then the authorization token solves these problems. However, this is just one of the authorization options. Architecture the ability to switch between authorization methods, and one day when you need tokens, you just write a new authorization method and go drink whiskey ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question