Stream login flow events via SSE

Establishes a Server-Sent Events (SSE) stream that delivers real-time login flow state updates. The stream terminates automatically once the flow reaches a terminal state (SUCCESS, FAILED, EXPIRED, CANCELED).

GET/auth/connections/{id}/events

Establishes a Server-Sent Events (SSE) stream that delivers real-time login flow state updates. The stream terminates automatically once the flow reaches a terminal state (SUCCESS, FAILED, EXPIRED, CANCELED).

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

The auth connection ID to follow.

Response

text/event-stream

SSE stream of auth connection state updates.

Union type representing any managed auth event.

An event representing the current state of a managed auth flow.

curl -X GET "https://example.com/auth/connections/string/events"
{  "event": "managed_auth_state",  "timestamp": "2019-08-24T14:15:22Z",  "flow_status": "IN_PROGRESS",  "flow_step": "DISCOVERING",  "flow_type": "LOGIN",  "fields": [    {      "id": "string",      "ref": "string",      "type": "identifier",      "label": "string",      "required": true,      "observed_selector": "string"    }  ],  "choices": [    {      "id": "string",      "type": "mfa_method",      "label": "string",      "description": "string",      "observed_selector": "string"    }  ],  "discovered_fields": [    {      "name": "string",      "type": "text",      "label": "string",      "placeholder": "string",      "required": true,      "selector": "string",      "linked_mfa_type": "sms",      "hint": "string"    }  ],  "mfa_options": [    {      "type": "sms",      "label": "string",      "target": "string",      "description": "string"    }  ],  "sign_in_options": [    {      "id": "string",      "label": "string",      "description": "string"    }  ],  "pending_sso_buttons": [    {      "selector": "string",      "provider": "string",      "label": "string"    }  ],  "external_action_message": "string",  "website_error": "string",  "error_message": "string",  "error_code": "string",  "post_login_url": "http://example.com",  "live_view_url": "http://example.com",  "hosted_url": "http://example.com"}