Skip to main content

Custom MFA

Use event coordination to pass MFA codes from external systems — your mobile app, webhook, or backend — into an active browser session during automation.

Overview

The system provides two operations:
  • Signal Event: Send data to an event channel
  • Wait for Event: Listen for data on an event channel with timeout
Events are user-scoped and work across multiple browser instances.

Custom MFA flow

Handle MFA codes during automated login flows:

Implementation

Helper Functions

Event Flow Patterns

Signal First, Wait Later (immediate consumption):
Wait First, Signal Later (typical MFA flow):

Best Practices

  • Use descriptive event names: mfa_code_login, mfa_code_transfer
  • Always set appropriate timeouts
  • Validate received event data
  • Handle timeout scenarios gracefully