Overriding simple-jwt's TokenObtainPairSerializer to implement 2FA
Overriding simple-jwt's TokenObtainPairSerializer to implement 2FA Question: I am currently trying to implement 2-Factor Authentication in my Django Application. The first thing I’ve done is to modify the Meta class in the UserSerializer class to add two fields enabled (indicates if 2FA is enabled for a user) and secret_key (the key to generate OTP, that …