How to combined scheb/2fa bundle with lexik/LexikJWTAuthenticationBundle?

  jwt, rest, symfony, two-factor-authentication

I’m making login two-factor feature on a project which using LexikJWTAuthenticationBundle (https://github.com/lexik/LexikJWTAuthenticationBundle). I use scheb/2fa bundle (https://github.com/scheb/2fa), but I don’t know how to combined it with JWT and use it in rest api project. I read the scheb/2fa documentation, but it’s pretty general and simple, and also says nothing to apply to rest api project.

Source: Symfony Questions

LEAVE A COMMENT