option here jwt or passport? Which one are you comfortable with?
They shouldn't be much different in terms of security. Theres less room for error if you're using passport because its all abstracted away from your code so you dont need to worry about handling too much. If you want to have more fine grained control go for jwt but make sure you're doing it properly. Why not use both? https://www.npmjs.com/package/passport-jwt
Обсуждают сегодня