Available JQuery Events

Some portal functions (such as 2FA registration) are performed by Javascript.

We offer a few custom events that let you react to certain high-level Javascript events

Second factor management

mfaAdded

New in version 2.0.15.

This event is triggered when a TOTP, WebAuthn or U2F device is registered

Sample code:

$(document).on( "mfaAdded", { }, function( event, info ) {
            console.log( "Added MFA of type" + info.type );
            // Your code here
});

mfaDeleted

New in version 2.0.15.

This event is triggered when a TOTP, WebAuthn or U2F device is removed

Sample code:

$(document).on( "mfaDeleted", { }, function( event, info ) {
            console.log( "Removed MFA of type" + info.type );
            // Your code here
});