mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
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:
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";
|
||||
|
||||
Reference in New Issue
Block a user