3 ms·
A non-trivial difference is that to validate password you need to run it through bcrypt or similar algorithm which is intentionally slow. With a token or cooki
by freedomben 5y ago
A non-trivial difference is that to validate password you need to run it through bcrypt or similar algorithm which is intentionally slow. With a token or cookie, you can use a regular fast hashing algorithm.
- usrbinbash 5y agoNothing prevents me from using BaseAuth for the login, and then issuing a session cookie to the user.