R
R
RoflanDaniil2017-10-11 16:39:15
JavaScript
RoflanDaniil, 2017-10-11 16:39:15

How to do authentication in Node.js without passport.js?

Authentication is a very common question on this resource (and not only), as well as a bunch of articles on this topic, after reading all this I got even more confused. Which method should be used? What is the safest way and not much slowing down the application? Which one should be used in real applications?
What if you use rsa ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
catHD, 2017-10-19
@RoflanDaniil

Passport is a library, and you can make it yourself (probably).
Here is an alternative https://jwt.io/ is the "way", the implementation is up to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question