Catch Selected MFA after first login

@travis.evers Action Be Execution After a User Has Successfully Completed an MFA Challenge

I found this article and started using

if (!event.user.multifactor?.length) {
            console.log("User is not enrolled, email is not considered enrollment")
            api.authentication.enrollWithAny([{
                        type: 'otp',
                    }, { type: 'phone' }]);
            console.log('blabadads')
        }

So in this case, do you know how can i get the enrolled mfa after enrollWithAny?