# maskDeviceCode

<!-- https://uncage.vercel.app/docs/api/react/functions/maskdevicecode/ -->

```ts
function maskDeviceCode(code): string;
```

Defined in: react/src/hooks.ts:469

The code as shown while its last 4 characters must be typed: `ABCD-••••` (built from the compacted code).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `code` | `string` |

## Returns

`string`
