> ## Documentation Index
> Fetch the complete documentation index at: https://docs.authsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Online verification

> Verify digital credentials in web and mobile apps with Flows, pre-built UI routing, and optional facial verification.

Online digital credential verification lets users share verified claims from their digital wallet in your web or mobile app. Authsignal handles protocol selection, cryptographic verification, revocation checks, and optional facial verification so you do not have to build separate integrations for each wallet.

## How online verification works

Authsignal supports both the W3C Digital Credentials API and OID4VP redirect/QR flows. When you use Authsignal's [pre-built UI](https://docs.authsignal.com/implementation-options/prebuilt-ui/overview.md), Authsignal automatically routes each user into the best path for their device and browser:

1. **W3C Digital Credentials API (default)**: On supported browsers and operating systems, the pre-built UI invokes the native wallet picker directly. Apple Wallet uses `org-iso-mdoc` (ISO/IEC TS 18013-7 Annex C), and Google Wallet supports `openid4vp-v1-signed` and `org-iso-mdoc`. On desktop browsers, the browser uses Bluetooth to confirm the user's phone is nearby.
2. **OpenID for Verifiable Presentations (OID4VP) redirect and QR code fallback**: When the user's browser or platform does not support the Digital Credentials API, the pre-built UI falls back to an OID4VP same-device deep link on mobile or a cross-device QR code on desktop.

Because browsers do not distinguish between a user declining a wallet prompt and not having a compatible wallet installed, the pre-built UI offers clear recovery options so users are not stuck at a dead end. Users without a digital ID can fall back to another Authsignal authentication method or your existing identity verification flow.

![Credential picker in the pre-built UI](https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/prebuilt-ui-credential-picker.png?fit=max\&auto=format\&n=9b1oN8vugPh1x9u9\&q=85\&s=fc21bec131897c441974b2ff37d87ee8)

The pre-built UI asks the user to choose a credential from their wallet

> [tab] Cross-device
>
> On desktop, the browser shows its own QR code. The user scans it with their phone and approves
> the request in their wallet, and the browser confirms over Bluetooth that the phone is nearby.
>
> <video controls src="https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/cross-device-dc-api.mp4?fit=max&auto=format&n=9b1oN8vugPh1x9u9&q=85&s=6b0959b9391e64dae9c340a063563e66" />
>
> Verifying on a desktop browser with a digital ID on an iPhone

> [tab] Same device
>
> On mobile, the browser opens the wallet on the same phone. The user picks a credential, reviews
> what is shared, and approves the request.
>
> <video controls src="https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/same-device-dc-api.mp4?fit=max&auto=format&n=9b1oN8vugPh1x9u9&q=85&s=a344d913aa02a6a388cbda45ebc2b787" />
>
> Verifying in a mobile browser with a digital ID on the same Android phone

> [card] [Branding](https://docs.authsignal.com/implementation-options/prebuilt-ui/custom-branding.md)
>
> Match the pre-built UI to your brand with your own colors, fonts, and styles.

> [card] [Custom domains](https://docs.authsignal.com/implementation-options/prebuilt-ui/custom-domains.md)
>
> Serve the pre-built UI from your own domain.

## Configure in the Authsignal Portal

Before running online verifications, set up a request preset and build a Flow in the Authsignal Portal.

**1. Enable digital credentials**

Contact [support@authsignal.com](mailto:support@authsignal.com) to enable digital credentials
for your tenant, then open the [Authenticators
page](https://portal.authsignal.com/organisations/tenants/authenticators) in the Authsignal
Portal.

Under **Verification requirements**, you can check revocation on every verification instead of
using cached revocation lists, and choose whether to return the claims of a revoked credential
alongside the failed result.

![Digital credential settings with request presets](https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/authenticator-settings.png?fit=max\&auto=format\&n=9b1oN8vugPh1x9u9\&q=85\&s=284bb919b1f3ed451915705e98edc530)

Digital credential settings and request presets

**2. Create a request preset**

A **request preset** defines what to ask for and which credentials to accept. Flows reference
presets by name, so you can reuse one preset across many flows.

* **Requested attributes**: Choose the minimum claims your use case needs, such as "Age over
  18" for an age check, or first name, last name, and ID photo for identity verification.
* **Accepted credentials**: Choose the credentials you accept, such as mobile driver's
  licenses, photo IDs, and EU PID. Authsignal flags any credential that can't provide a
  requested attribute. To accept a credential that isn't listed, [contact our
  team](https://authsignal.com/contact).

![Request preset editor](https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/request-preset-editor.png?fit=max\&auto=format\&n=9b1oN8vugPh1x9u9\&q=85\&s=2771d56497d44144d4c79e7dfc37ec53)

A request preset for age verification with a photo for face matching

**3. Add the step to a Flow**

On the [Actions page](https://portal.authsignal.com/actions), create a [Flows](https://docs.authsignal.com/flows/overview.md)
action, add a **Digital credential request** step, and choose your request preset. You can
combine this step with [rules](https://docs.authsignal.com/flows/nodes/rule.md), facial verification, or a passkey enrollment
step, then select **Publish**.

![Flow with a digital credential request step](https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/flow-digital-credential-request.png?fit=max\&auto=format\&n=9b1oN8vugPh1x9u9\&q=85\&s=3d42e6679262023d4c9142c7439cdfa3)

A Flow with a single digital credential request

## Integrate with your app

Online verification runs as a [Flow](https://docs.authsignal.com/flows/overview.md) in the [pre-built
UI](https://docs.authsignal.com/implementation-options/prebuilt-ui/overview.md). The pre-built UI handles wallet routing, protocol
selection, and retries, so your backend only starts the flow and verifies the result. See the
[Flows quickstart](https://docs.authsignal.com/flows/overview.md#quickstart) for code examples.

**1. Start the flow from your backend**

Call [Start Flow](https://docs.authsignal.com/sdks/server/flows.md#start-flow) with your Flows action code and a
`redirectUrl`, and return the `challengeUrl` in the response to your frontend. Pass a user
identifier when the verification belongs to an account. For a one-off check, such as an age
gate, you can omit the user.

**2. Launch the pre-built UI**

In your frontend, pass the `challengeUrl` to the [Web
SDK](https://docs.authsignal.com/sdks/client/web/prebuilt-ui.md) to launch the pre-built UI.

```js theme={null}
authsignal.launch(challengeUrl, {
  mode: "redirect",
});
```

**3. Verify the result on your backend**

When the flow finishes, the pre-built UI sends the user to your `redirectUrl` with a
`challenge_token` query parameter. Pass it to [Verify Flow](https://docs.authsignal.com/sdks/server/flows.md#verify-flow)
from your backend and confirm that the action state is `CHALLENGE_SUCCEEDED` before trusting
the result.

**4. Read verified claims**

When the flow succeeds, the Verify Flow response includes the verified claims on the digital
credential step in `action.completedSteps`. Claims are grouped by namespace, and images such as
`portrait` are returned as base64 data URLs.

```json theme={null}
{
  "action": {
    "state": "CHALLENGE_SUCCEEDED",
    "completedSteps": [
      {
        "stepType": "DIGITAL_CREDENTIAL_REQUEST",
        "credentials": [
          {
            "docType": "org.iso.18013.5.1.mDL",
            "claims": {
              "org.iso.18013.5.1": {
                "age_over_18": true,
                "portrait": "data:image/jpeg;base64,/9j/4AAQSkZJRg..."
              }
            }
          }
        ]
      }
    ]
  }
}
```

> [!NOTE]
>
> Platform wallet policies vary by use case. For example, Apple restricts using Verify with Apple
> Wallet for tobacco, vape, cannabis, and firearms (alcohol age verification is supported).

## Optional facial verification

A valid digital credential proves that the issuer signed the data and that the user's device holds the credential, but it does not prove on its own that the person holding the device is the true owner.

You can add optional facial verification (biometric binding) directly to your digital credential Flow to confirm holder presence:

1. The user presents their digital credential with the issuer-signed `portrait` claim.
2. Authsignal sends the verified `portrait` to your configured biometric verification provider (powered by [iProov](https://docs.authsignal.com/authentication-methods/biometrics.md#iproov)) as the trusted reference face.
3. The user completes a real-time selfie liveness check in the pre-built UI.
4. Authsignal confirms the live face matches the credential portrait before completing the flow.

Adding facial verification helps stop stolen devices, shared wallets, and spoofing or deepfake attacks. Authsignal does not store the portrait image; it is passed transiently to perform the face match.

To set it up, add a **Biometric verification** step after the digital credential request and set its photo source to **Digital credential**. The request preset must include the ID photo attribute.

![Flow with a digital credential request and facial verification](https://mintcdn.com/authsignal-23/9b1oN8vugPh1x9u9/images/docs/authentication-methods/digital-credentials/flow-facial-verification.png?fit=max\&auto=format\&n=9b1oN8vugPh1x9u9\&q=85\&s=8fb6ea55fb3211762e8c219a9f10a008)

A digital credential request followed by facial verification

### When to add facial verification

| Use case | Recommended setup |
| - | - |
| Age gating or lightweight eligibility checks | Digital credential only (`age_over_18` or `age_over_21`) |
| Account onboarding and KYC | Digital credential + facial verification |
| Account recovery and passkey re-enrollment | Digital credential + facial verification, followed by passkey enrollment in the same Flow |
| High-risk step-up transactions | Digital credential + facial verification, triggered by Authsignal rules |

## Next steps

* [Flows overview](https://docs.authsignal.com/flows/overview.md): Learn how to build multi-step verification and enrollment journeys.
* [Biometric auth](https://docs.authsignal.com/authentication-methods/biometrics.md): Learn more about Authsignal's biometric verification providers.
* [In-person verification](https://docs.authsignal.com/authentication-methods/digital-credentials/in-person-verification.md): Bring digital credential verification to kiosks and point of sale counters.
* [Contact our team](https://authsignal.com/contact) to enable online digital credential verification.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.