# DeviceCodeSource

<!-- https://uncage.vercel.app/docs/api/react/type-aliases/devicecodesource/ -->

```ts
type DeviceCodeSource = "link" | "typed";
```

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

Where the device code came from. `'typed'`: the user typed the whole code from their own
terminal. `'link'`: it arrived in a URL (`/device?code=`, a QR code, an app link) and is not
trusted on its own, since anyone can run `uncage setup` on their own computer and send the link
(device-approval phishing).
