docs: add bearer plugin requirement note to device auth docs (#6351)

Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
Co-authored-by: Taesu <bytaesu@gmail.com>
This commit is contained in:
Gautam Manchandani
2026-01-06 15:24:49 +08:00
committed by Alex Yang
co-authored by Taesu Taesu
parent d62d115469
commit e19ee4db43
@@ -416,6 +416,10 @@ The device flow defines specific error codes:
Here's a complete example for a CLI application based on the actual demo:
<Callout type="info">
To use the access token for API requests, ensure you have added the [Bearer plugin](/docs/plugins/bearer) to your auth instance.
</Callout>
```ts title="cli-auth.ts"
import { createAuthClient } from "better-auth/client";
import { deviceAuthorizationClient } from "better-auth/client/plugins";