Token handling for External MFA extensions.
verifyMFA is a capability for use when writing External MFA extensions with the Q2 SDK. At the completion of External MFA within the extension, a token can be passed to the platform for verification. If verification is successful, the platform can respond back to the calling extension with a successful promise and transition to the next step in the platform's workflow.
tecton.actions.verifyMFA(options: VerifyMFAOptions): Promise<any>;export interface VerifyMFAOptions {
token: string;
exit?: boolean;
}Verify an MFA token.
tecton.actions.verifyMFA({
token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRFQ1RPTiIsImlhdCI6MTUxNjIzOTAyMn0.Ul0KK6P0ZSzr6Av2LPGXoFQSmgQjL90EoDdwX7i9pGc'
}).then(function (response) {
// Handle verifyMFA success response
}).catch(function (error) {
// Handle verifyMFA error response
});When using the verifyMFA action, there are important details to keep in mind.
verifyMFA is intended to be used with External MFA extensions built using the Q2 Caliper SDK. For more information on building External MFA extensions, see the SDK External MFA guide.
options.tokenoptions.exit