# Glide Phone Verification

Client SDK
> Verifies a user's phone number using carrier-grade Silent Authentication, with no OTP


## Description

This step verifies a user's phone number using Glide Identity's Silent Authentication — confirming the user physically possesses the SIM card associated with the number, without sending an OTP. Before using this step, configure a [Glide Identity connection](/guides/orchestration/external-connections/third-party-integrations/glide_identity) in Integration Hub.

The user either taps a single consent prompt or is briefly redirected to their carrier app; no code is typed. Glide automatically selects the verification method based on the user's device and carrier — a silent OS-level check (TS43), a carrier app redirect (Link), or a QR code scan (Desktop) — and the step handles method selection and session management internally. The result includes a verified/not-verified decision along with real-time SIM-swap and device-change fraud signals.

**Underlying API flow:**

1. **Authenticate** — The connector obtains a Glide access token using the configured Client ID and Client Secret (OAuth2 client credentials).
2. **Prepare** (`POST /magic-auth/v2/auth/prepare`) — Submits the phone number to Glide, server-side. Glide returns a session and selects the verification method (`authentication_strategy`: `ts43`, `link`, or `desktop`), passed down to the client along with the opaque `prepare_response`.
3. **Invoke** — The client drives the [Glide frontend SDK](#client-integration) with the `prepare_response`, triggering the corresponding user interaction (OS consent prompt, carrier app redirect, or QR scan) and receiving a signed credential from the carrier.
4. **Report Invocation** (`POST /magic-auth/v2/auth/report-invocation`) — Notifies Glide the verification prompt was shown. Fire-and-forget; produces no output.
5. **Verify** (`POST /magic-auth/v2/auth/verify-phone-number`) — Submits the session and credential to Glide, server-side, which returns the verified decision, confirmed phone number, and fraud signals.


For the Link strategy (carrier-redirect device binding), an additional `/complete` call is made between steps 3 and 5 to validate device binding — handled transparently by the connector, though the client must relay the redirect's `agg_code` back to the journey (see [Client integration](#client-integration)).

If the check completes and confirms the phone number, the journey continues to the next step. If the check completes but doesn't confirm ownership, the journey proceeds to the **Not Verified** branch (if one is specified); otherwise, the journey is aborted and an error is sent to the client. If the request to Glide fails outright, the journey proceeds to the **Failure** branch instead.

## Client integration

This step is available in **Client SDK journeys only** (not hosted/SSO-redirect journeys), and is interactive: the journey hands your client a payload mid-step, and your client must drive the **Glide frontend SDK** in the browser before returning a result via `submitClientResponse` — the same mechanism used for any client-facing step (e.g. [Collect Information](/guides/orchestration/journeys/get_info_from_client)). This mechanism is currently documented and validated for **web** (Transmit's Orchestration Web SDK + Glide's `@glideidentity/glide-fe-sdk-web`); mobile/native client support hasn't been confirmed.

Your client must read `authentication_strategy` from the step payload and branch on it — never hard-code one:

| `authentication_strategy` | Device / carrier | Client behavior |
|  --- | --- | --- |
| `ts43` | Android / Chromium with eligible SIM | Call `invokeSecurePrompt(prepare_response)`, await the resulting credential, submit `{ credential }` once. |
| `desktop` | Desktop browser (cross-device via QR) | The Glide SDK renders a QR. Submit an empty `{}` and re-poll every `polling_interval` seconds (from the step payload) until the journey advances. |
| `link` | Carrier-redirect (e.g. some iOS/web) | Requires relaying the carrier redirect's `agg_code` back to the journey via `submitClientResponse`. Advanced — coordinate with your Transmit contact before relying on this path. |


Client packages: `@transmitsecurity/platform-web-sdk` (Orchestration Web SDK) and `@glideidentity/glide-fe-sdk-web` (`new PhoneAuthClient().invokeSecurePrompt(prepareResponse)`). TS43 requires a user gesture before invoking, since it uses the Digital Credentials API.

## Configuration

| Field | Description |
|  --- | --- |
| **Glide Identity Integration** | The Glide Identity connector to use, as configured in Integration Hub. |
| **Phone Number** | Expression that yields the phone number to verify, in E.164 format (e.g., `+14155551234`). |
| **Output Variable** | Name of the variable that stores the verification result — see [Output](#output). |
| **Error Output Variable** | Name of the variable that stores failure details on the Failure branch — see [Errors](#errors). |
| **Failure Behavior** | Determines the behavior in case of failure, which either aborts the journey or proceeds to a failure branch of the control flow (default). |


Journey event data
This step can be configured to record step input and output data, or a custom payload, which is then surfaced in journey events in Journey Analytics for diagnostic purposes. For details, see [Additional data reporting](/guides/orchestration/getting-started/event_reporting).

## Output

```json
{
  "verified": true,
  "sim_swap_risk_level": "RISK_LEVEL_LOW",
  "sim_swap_checked": true,
  "device_swap_risk_level": "RISK_LEVEL_LOW",
  "device_swap_checked": true,
  "raw_response": {}
}
```

| Field | Description | Typical values | Notes |
|  --- | --- | --- | --- |
| **verified** | Whether the user was confirmed to possess the SIM associated with the phone number. | `true`, `false` | Primary success signal for this step. **This call returns a normal success response even when `verified: false`** — Glide does not return an error for a failed check. Always branch on the field itself, never on whether the call succeeded. |
| **sim_swap_risk_level** | How recently the number was moved to a different SIM. Based only on timing, not on anything about the user or their intent — this is not a fraud score. | `RISK_LEVEL_HIGH` (swapped < 7 days ago), `RISK_LEVEL_MEDIUM` (7–30 days ago), `RISK_LEVEL_LOW` (> 30 days ago), `RISK_LEVEL_UNKNOWN` (timing couldn't be determined) | Only ever one of these four values. |
| **sim_swap_checked** | Whether the carrier actually completed the SIM-swap check. | `true`, `false` | **Evaluate this before reading `sim_swap_risk_level` — the order matters.** `false` means "we don't know," not "safe." A rule that reads the risk level without gating on `checked == true` first will silently treat an unknown result as a pass: `sim_swap_checked == true && sim_swap_risk_level != "RISK_LEVEL_LOW"`. Note that this pattern also catches `RISK_LEVEL_UNKNOWN` — Glide's own recommended default for sensitive flows, but make it a deliberate choice for your policy, not something discovered later. |
| **device_swap_risk_level** | How recently the number was moved to a different physical device (IMEI change). Same four-value scale as `sim_swap_risk_level`. | `RISK_LEVEL_HIGH`, `RISK_LEVEL_MEDIUM`, `RISK_LEVEL_LOW`, `RISK_LEVEL_UNKNOWN` | Same evaluation-order rule as `sim_swap_risk_level` applies. |
| **device_swap_checked** | Whether the carrier actually completed the device-swap check. | `true`, `false` | Same canonical-signal note as `sim_swap_checked`. **Not every carrier supports this check — when it's unsupported, the entire `device_swap` result can be absent from the response, not just `checked: false`.** Decide deliberately what a missing signal means for your policy; don't let an absent field default to a pass. |
| **raw_response** | Glide's full response. | — | Present on every branch — reach in for anything not surfaced above. |


## Branches

| Branch | When it occurs |
|  --- | --- |
| **Verified** | Glide returns `verified: true`. |
| **Not Verified** | Glide completed carrier verification but returned `verified: false`. |
| **Failure** | An error occurred during the verification flow (e.g., unsupported device/carrier, vendor error). |


## Errors

On the Failure branch, the Error Output Variable holds a JSON object, not a single code:

```json
{
  "stage": "verify_phone_number",
  "message": "…",
  "glide_error_code": "…"
}
```

| Field | Description | Notes |
|  --- | --- | --- |
| **stage** | Where in the flow the failure occurred. | Always present. One of `prepare`, `verify_phone_number`, `complete`, `status`, `resume`. |
| **message** | Human-readable failure description. | Always present. |
| **glide_error_code** | Glide's native error code, passed through as-is. | Present **only** for carrier/Glide-stage failures — not present on client-input validation failures (e.g. a malformed client submission). Don't write branching logic that assumes it's always there. See [Glide's error handling documentation](https://docs.glideidentity.com/docs/magical-auth/error-handling) for the full code list. |


Customers can branch on `glide_error_code` when present — e.g., routing to an OTP fallback when Silent Authentication isn't supported for the user's device or carrier.

## Example

Suppose a login journey has already collected the user's phone number in `phoneInput`. This step is configured mapping `phoneNumber = phoneInput.value`, storing the verification result in `glideResult`, and storing failures in an error output variable named `glideError`. A following [Condition](/guides/orchestration/journeys/condition) step can check `glideResult.verified == true` on the **Verified** branch to proceed with login; on the **Failure** branch, it can inspect `glideError.glide_error_code` to decide whether to retry or fall back to an OTP-based step such as [Auth0 OTP Generate](/guides/orchestration/journeys/authenticate_auth0_otp_generate).

A journey layering swap-fraud policy on top of a successful verification should gate on `checked` before reading `risk_level`, for both signals independently, e.g.:

```
glideResult.sim_swap_checked == true && glideResult.sim_swap_risk_level != "RISK_LEVEL_LOW"
```

routed to a step-up or rejection path. Decide up front, as a team, whether an unchecked or absent signal (`sim_swap_checked == false`, or `device_swap_checked` missing entirely because the carrier doesn't support it) should be treated the same as a high-risk result — don't let it default to a pass by omission.