- Scoped listeners listen on their container and catch events from within
- Global listeners listen on document and catch anything that bubbles up
Parameters
| Parameter | Type | Description |
|---|---|---|
listener | MfaListener | The listener function to call when MFA is required. |
options? | MfaListenerOptions | Optional configuration including scope element. |
Returns
A function to unregister the listener.Returns
void