# How to accept the EU age verification app on your website · Ageseal

Canonical URL: https://ageseal.eu/guides/integrate-eu-age-verification-app

> A developer guide to accepting the EU age verification app: the Digital Credentials API request, the ISO mdoc and OpenID4VP protocols, decrypting the answer and the checks your server must run before it trusts "over 18".

Published 20 November 2026. Last reviewed 20 November 2026. This guide is general information, not legal advice. Check your own duties with a lawyer or your regulator.

## In short

- A website asks for a proof of age through the browser with the W3C Digital Credentials API. The visitor picks the age verification app or another wallet, approves, and the browser hands back an encrypted answer.
- Send two requests in one call: the ISO mdoc protocol first and OpenID4VP second. Ask for one element, age_over_18, in the age verification document type, and nothing else.
- Decrypt and verify on your server, never in the page: the issuer signature, the certificate against the EU trusted list, validity dates, the digest of the disclosed element and the device signature that binds the answer to your origin and nonce.
- Treat each request as single use, keep nothing but the yes or no, and plan a fallback, because few visitors have a production proof yet.

## How the flow works

The [EU age verification app](https://ageseal.eu/guides/eu-age-verification-app) holds a proof that its owner is over 18. Your site never talks to the app directly. It asks the browser, the browser shows a wallet picker, the visitor approves in the app, and the answer comes back to your page. The Commission's [developer guide for verifiers](https://docs.ageverification.dev/Getting%20started/developer_guide_verifier/) calls the browser route the primary one.

1. Your server creates a request: a fresh random nonce, a fresh encryption key pair and the question "over 18".
2. Your page passes the request to the browser with the Digital Credentials API.
3. The visitor approves in the app. The app encrypts its answer to your key and the browser returns it to the page.
4. Your page posts the encrypted answer to your server, which decrypts it, verifies it and decides.

Every step that decides something happens on the server. The page only carries opaque data back and forth.

## The browser request

The [Digital Credentials API](https://w3c-fedid.github.io/digital-credentials/) extends the familiar credential request in the browser with a digital member that lists one or more requests. Each request names a protocol and carries that protocol's data. [Chrome 141 and later](https://developer.chrome.com/blog/digital-credentials-api-shipped) ship the API on Android, on desktop through a QR code scanned by a phone wallet, and on iOS 26 or later. Detect support before you call it, and show your fallback when it is missing.

Send two requests in the same call so that every wallet can find one it understands:

- **ISO mdoc**, the protocol defined in ISO/IEC TS 18013-7 Annex C. The request is a CBOR device request plus encryption information that carries your public key and nonce.
- **OpenID4VP**, the unsigned request over the Digital Credentials API defined in [OpenID for Verifiable Presentations 1.0](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html). It carries a DCQL query, your nonce and your public encryption key.

Put the ISO mdoc request first. In our tests the reference app read only the first request in the list and refused any other protocol in that position, while other wallets chose the entry their own matcher preferred. Order costs nothing and avoids a silent failure.

### What to ask for

The [age verification profile](https://docs.ageverification.dev/av-doc-technical-specification/docs/annexes/annex-A/annex-A-av-profile/) defines the credential: document type eu.europa.ec.av.1, namespace eu.europa.ec.av.1 and boolean elements such as age_over_18. Ask for exactly one element and mark it as not retained. Asking for more data defeats the point of the app, and a well behaved wallet will show the visitor everything you asked for.

If you also want to accept a mobile driving licence, add its document type as an alternative in the same request, so any one of the documents answers the question. ISO device requests of version 1.1 need explicit use cases that say so.

## Decrypting the answer

The app encrypts its answer to the public key in your request, so only your server can read it. The ISO mdoc protocol uses [HPKE](https://www.rfc-editor.org/rfc/rfc9180) with the session transcript as additional data. OpenID4VP returns a JWE encrypted with ECDH ES. Generate a new key pair for every request and throw it away afterwards.

Keep the private key on the server. If you must hold it between the request and the answer, store it encrypted and tied to the request identifier, and delete it as soon as the answer arrives or the request expires. A few minutes is enough.

## The checks your server must run

Inside the answer is a device response: the issuer signed data, signed with [COSE](https://www.rfc-editor.org/rfc/rfc9052), and a device signature made by the phone. Accept the answer only when all of these hold:

1. **Issuer signature.** The issuer signature over the mobile security object verifies with the document signer certificate in the answer.
2. **Trust.** That certificate is listed on the [EU trusted list](https://trust.tech.ec.europa.eu/lists/age-verification/av-tl.xml), or was issued directly by an issuer root on it, for the same document type. Our guide to the [trusted list](https://ageseal.eu/guides/eu-age-verification-trusted-list) covers how to check and refresh it.
3. **Validity.** The certificate and the mobile security object are inside their validity periods, with a small allowance for clock skew.
4. **Digest.** The disclosed age_over_18 value matches its digest in the signed object, so it was not changed after signing.
5. **Binding.** The device signature verifies over the session transcript, which contains your origin and your nonce. This is what stops a proof from being replayed or relayed by another site.
6. **Scope.** Exactly one document of the expected type, exactly the element you asked for, nothing more.

Then mark the request as used, record yes or no, and drop everything else. Never accept a second answer for the same request, and never accept an answer after the request has expired.

### Zero knowledge proofs

The newest revision of the profile, published on [ageverification.dev](https://ageverification.dev), makes a zero knowledge proof the mandatory presentation, with the plain mdoc presentation as the fallback. A zero knowledge proof lets you check the issuer's statement without receiving a value that could link two visits. Plan for it, but expect wallets and verifiers to support the plain presentation first. Ageseal verifies the plain mdoc presentation today.

## Mistakes we see most

- Verifying in the page. Anything in the browser can be changed by the visitor, so a check that runs there proves nothing.
- Trusting the certificate that comes with the answer. It must lead back to the trusted list, or anyone can sign "over 18".
- Accepting only issuer roots. Some providers, including the Danish production one, list their document signer certificate directly.
- Mixing test and production. Test issuers are public, so a test proof must never pass a production check.
- Skipping the transcript check. Without it, a proof shown to one site can be reused on another.
- Keeping the decrypted answer, or logging it. You need the yes or no, nothing else.

## Plan the fallback first

On 20 November 2026 the production trusted list named one provider, and the Commission recommends that Member States offer an app by 31 December 2026 ([Recommendation (EU) 2026/1035](https://digital-strategy.ec.europa.eu/en/library/commission-sets-out-common-approach-eu-wide-age-verification-technologies)). For most of 2027, many visitors will have no compatible app or browser. Decide what they see: another age check method, a delivery check, or a polite refusal. Measure how often each path is used so you can change course as adoption grows.

Registration is not needed for the app path today: the profile says reader and client authentication are not required for age verification. That can change in a later version of the profile, so watch it.

## Where Ageseal fits

[Ageseal](https://ageseal.eu/#waitlist) is building everything above as a service. It is in development and has no customers yet. A script tag calls the browser, our API builds both requests, decrypts and verifies the answer against the trusted list, and returns a signed yes or no that your server checks in one call. See the [quickstart](https://ageseal.eu/docs/quickstart) and [verifying the token](https://ageseal.eu/docs/verify) for the code, and [fallback](https://ageseal.eu/docs/fallback) for visitors without a wallet.

## Sources

- [Chrome: Digital Credentials API shipped in Chrome 141](https://developer.chrome.com/blog/digital-credentials-api-shipped)
- [W3C Digital Credentials API (editor’s draft)](https://w3c-fedid.github.io/digital-credentials/)
- [OpenID for Verifiable Presentations 1.0](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html)
- [EU age verification project: developer guide for verifiers](https://docs.ageverification.dev/Getting%20started/developer_guide_verifier/)
- [Age verification profile (annex A of the technical specification)](https://docs.ageverification.dev/av-doc-technical-specification/docs/annexes/annex-A/annex-A-av-profile/)
- [EU age verification project: blueprint and specifications (ageverification.dev)](https://ageverification.dev)
- [RFC 9180: Hybrid Public Key Encryption](https://www.rfc-editor.org/rfc/rfc9180)
- [RFC 9052: CBOR Object Signing and Encryption (COSE)](https://www.rfc-editor.org/rfc/rfc9052)
- [EU age verification trusted list, production (XML)](https://trust.tech.ec.europa.eu/lists/age-verification/av-tl.xml)
- [Commission Recommendation (EU) 2026/1035](https://digital-strategy.ec.europa.eu/en/library/commission-sets-out-common-approach-eu-wide-age-verification-technologies)

## Related guides

- [The EU age verification trusted list: what it is and how to check it](https://ageseal.eu/guides/eu-age-verification-trusted-list)
- [The EU age verification app: what it is and what websites need to integrate](https://ageseal.eu/guides/eu-age-verification-app)

## Ageseal is building the wallet check described here

A script tag asks the visitor’s wallet whether they are over 18 and your server gets a signed yes or no. Ageseal is in development and has no customers yet. Join the waitlist to hear when test mode opens. Join at https://ageseal.eu/#waitlist.
