How to ask two MFAs one after another incase of customised risk assessment?


We are building a customisation over the adaptive mfa feature.
Our goal is to recreate the action of the behaviour of Adaptive Mfa. When there is a low or medium confidence in the risk assessment object which is available in the event.authentication of the post login event, we want to trigger an email otp followed by a push notification.

We tried experimenting with the challengeWith, challengeWithAny and the mulitfactor.enable methods. We are unable to achieve our goals with this.

Has someone done this before?