---
title: "Set a minimum age"
description: "Choose the minimum age your app accepts, ask for it at sign-up and refuse anyone younger, and what COPPA and GDPR Art. 8 ask when children could sign up. Not legal advice."
canonical_url: "https://nuxt-backend.dev/docs/ship/compliance/age"
---
# Set a minimum age

> Choose the minimum age your app accepts, ask for it at sign-up and refuse anyone younger, and what COPPA and GDPR Art. 8 ask when children could sign up. Not legal advice.

Version: nuxt-backend 0.6.x · Tab: Ship · Kind: how-to · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

Children's data carries extra duties in the US and the EU. Most client apps avoid them by not accepting children: they set a minimum age, ask for it at sign-up, and refuse anyone younger. `setupAccount({ minimumAge })` does that. The package has no parental-consent flow, so an app built for children needs more than this page.

<warning>

**Not legal advice.** This summarizes the [COPPA Rule](https://www.ecfr.gov/current/title-16/chapter-I/subchapter-C/part-312) and [GDPR Art. 8](https://eur-lex.europa.eu/eli/reg/2016/679/oj) as they read on 2026-10-25. Other laws, such as the UK's children's code and US state laws on minors, are out of scope.

</warning>

## What the rules ask

### Children under 13 in the US

COPPA reaches an operator whose service is directed to children under 13, or who knows it collects personal information from a child under 13. Such an operator needs verifiable consent from a parent before collecting, and more. The [amended rule](https://www.federalregister.gov/documents/2025/04/22/2025-05904/childrens-online-privacy-protection-rule), in force since 2025-06-23 with compliance due by 2026-04-22, adds:

- a separate parental consent before disclosing a child's data to third parties, such as for advertising;
- a written retention policy, keeping a child's data only as long as needed;
- a written information security program.

An app not directed to children, with no knowledge that a user is under 13, is outside COPPA. A neutral age question keeps it that way: the FTC's [COPPA FAQ](https://www.ftc.gov/business-guidance/resources/complying-coppa-frequently-asked-questions) asks that it not hint at the age that passes.

### Children in the EU

Where you rely on consent to process a child's data for a service offered to them, the child must be at least 16, or a parent must consent (GDPR Art. 8). Each country may lower that age, to no less than 13. Children's data merits specific protection in any case (Recital 38). An online platform open to minors must also protect their privacy and safety, and may not show them ads based on profiling ([DSA Art. 28](https://eur-lex.europa.eu/eli/reg/2022/2065/oj)).

### Paying

In most countries a minor can't enter a paid contract alone. Check the billing provider's terms on the buyer's age before you sell to young users.

## Choose your minimum age

<table>
<thead>
  <tr>
    <th>
      Your app
    </th>
    
    <th>
      A common choice
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Generates images from people's photos, or sells to adults only
    </td>
    
    <td>
      18
    </td>
  </tr>
  
  <tr>
    <td>
      Has users in the EU and features that rely on consent
    </td>
    
    <td>
      16, which meets every member state's age
    </td>
  </tr>
  
  <tr>
    <td>
      Has users only in the US, and is not directed to children
    </td>
    
    <td>
      13
    </td>
  </tr>
</tbody>
</table>

The choice is yours. The higher the age, the fewer duties you take on, and the fewer people can sign up.

## Ask for the age at sign-up

<steps level="3">

### Set the minimum age

Pass `minimumAge` to `setupAccount`:

```ts [backend/account.ts]
import { setupAccount } from 'nuxt-backend/account'
import { components } from './_generated/api'
import { audit } from './audit'
import { billing } from './billing'
import { email } from './email'

export const account = setupAccount(components, {
  audit,
  billing,
  email,
  minimumAge: 16,
})
```

### See it in the sign-up form

Sign up with a new address. After its code checks and before the account is created, the form asks for your age. You should see an account created for an age of 16 or more, and a refusal below it. No account is created for a refused person, and the browser is refused for a day. The question and the rest are on [Record consents](https://nuxt-backend.dev/docs/build/auth/accounts/consents#set-a-minimum-age).

### Keep the question neutral

The question's words are labels, so you can change or translate them ([Change copy and labels](https://nuxt-backend.dev/docs/build/ui/customize/labels)). Ask for an age, without saying which one passes, and don't invite people to try again with another.

### Say it in your terms

State the minimum age in your terms and your privacy notice, so people and authorities read the same rule your form applies ([Legal pages](https://nuxt-backend.dev/docs/ship/compliance/privacy#legal-pages)).

</steps>

## Limits

- **Self-declared, not verified.** A person can lie about their age. Laws that require age verification, for adult content for example, need a verification provider.
- **No parental consent.** An app directed to children, or one that lets them in with a parent's consent, needs a consent flow the package doesn't build.
- **When you learn otherwise.** If you find that a user is under your minimum age, delete their account ([Export and delete account data](https://nuxt-backend.dev/docs/build/auth/accounts/data)).

## Related

- [Record consents](https://nuxt-backend.dev/docs/build/auth/accounts/consents): the consents a person gives at sign-up.
- [Sign-in](https://nuxt-backend.dev/docs/build/auth/sign-in): the sign-up form the age question joins.
- [Privacy, GDPR and cookies](https://nuxt-backend.dev/docs/ship/compliance/privacy): legal bases and the privacy page.
- [Moderate user content](https://nuxt-backend.dev/docs/ship/compliance/moderation): reports about content involving minors.
- [Compliance](https://nuxt-backend.dev/docs/ship/compliance): who answers for what.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
