# RecoveryAddressPending

The RecoveryAddressPending type of the TypeScript SDK, which recovery.setAddress take or answer.

```ts
type RecoveryAddressPending = {
  address: string
  expiresAt: number
  sameAccount: boolean
  state: 'pending'
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `address` | `string` | The pending address, masked |
| `expiresAt` | `number` | Epoch seconds after which the confirmation code is dead and the address must be set again |
| `sameAccount` | `boolean` | True if this address routes to another mailbox in the SAME account, so a single compromise or a single outage can take both. Allowed, and worth warning about |
| `state` | `'pending'` | Pending is never a reset target |

## Used by

| Method | What it does |
| --- | --- |
| [`recovery.setAddress`](/docs/sdks/typescript/recovery/set-address) | Set the mailbox's recovery address |
