How to implement optional MFA?

I am creating an angular2 application where I’d like to implement “optional” MFA. By this, I mean I want users to be able to authenticate manually, but able to somehow activate MFA in their user profile. How should I go about this? I am mostly interested in Guardian’s SMS authentication method. I am using the Lock widget.