In fact, I believe that you can check your own session / token to see if it was done through Google, Twitter, Facebook, etc., and then require MFA / 2FA / OTP when using this token for the first time. It makes sense?
You can start your own TOTP microservice using the Browser Authenticator , which has the components necessary for creating and verifying the key and token in the browser and Node Authenticator , which has an additional server code.
Just add your own storage mechanism and https call for microservice, update session / token and alt, you have added two-factor / multi-factor / one-time password authentication directly on top of them.
source share