B
B
BonBon Slick2017-12-09 18:40:46
symfony
BonBon Slick, 2017-12-09 18:40:46

Why use JWT?

In fact, after digging into the projects, I noticed that any project that uses Doctrine 2 and DDD uses JWT, and writes custom authorization, recovery, user registration.
Why and why?
For example, in Laravel + Doctrine, it is clear that the standard Auth and Guard package will not work as it should with Doctrine, because those packages are on Eloquent.
What about Symfony? I see that JWT packages are used and where there is no FOSUserBundle, why? Is there really no or no standard Symfony packages for developing a user authorization system?
Package example:
https://github.com/lexik/LexikJWTAuthenticationBundle

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Koryukov, 2017-12-09
@BonBonSlick

Why don't you like JWT? This method of saving and passing state, in particular authentication data, is more versatile than the standard session entry.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question