# The gateway token is old (/docs/troubleshooting/token-old)

What turno doctor --security means by "the mcpd token is <days> days old (more than <token_max_age_days>)<derived>", and the fix.

This page is for when `turno doctor --security` reports the finding below: what it means and how to fix it.

## What you see [#what-you-see]

```text
  !  the mcpd token is <days> days old (more than <token_max_age_days>)<derived>
     fix: turno mcp token rotate && turno mcp sync
```

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

## Why it happens [#why-it-happens]

The master token is older than doctor's limit. Rotating it replaces it and invalidates every profile token.

## Fix [#fix]

Run:

```sh
turno mcp token rotate && turno mcp sync
```

`turno doctor --security --fix` does not run it for you, because it needs a decision or an answer from you.

Then run `turno doctor --security` again to see the row turn into `ok`.

The check lives in [`packages/turno/src/cli/security.ts`](https://github.com/wimo-dev/turno/blob/main/packages/turno/src/cli/security.ts).