Problem statement
This article explains how to intercept the OTP sent via phone when testing.
Solution
Create a send-phone-message Action, that will log the message to the console using console.log, e.g.:
exports.onExecuteSendPhoneMessage = async (event) => {
const text = event.message_options.text;
console.log('Message: ' + text);
};
Then use the Realtime Webtask Logs Extension to monitor the output.