device-authorization

Implement RFC 8628 device authorization grant flow for non-browser applications.

Updated Nov 16, 2025
One-click install
npx skills add https://github.com/b-open-io/better-auth-plugin --skill device-authorization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: device-authorization
Source: https://github.com/b-open-io/better-auth-plugin/tree/main/skills/device-authorization
Command: npx skills add https://github.com/b-open-io/better-auth-plugin --skill device-authorization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables authentication for applications that cannot handle browser redirects, such as CLI tools and IoT devices, by implementing the RFC 8628 device authorization flow.

Core Features & Use Cases

  • Device Code Flow: Facilitates user authentication on devices with limited input capabilities.
  • Agent Authentication: Provides a secure mechanism for AI agents and autonomous services to obtain verifiable BAP identities.
  • Use Case: Authenticate a command-line interface tool by having the user visit a URL on their phone to approve the login request.

Quick Start

Use the device-authorization skill to initiate the device code flow for authenticating a CLI application.

Frequently Asked Questions about device-authorization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate a CLI tool without a browser redirect?

To authenticate a CLI tool without a browser redirect, implement the RFC 8628 device authorization grant flow. This allows users to approve login requests via a separate browser session while the application polls for a token.

What is the RFC 8628 device authorization grant used for?

The RFC 8628 device authorization grant is used for authenticating applications lacking browser redirect capabilities. It enables secure user approval for devices with limited input capabilities, such as CLI tools, desktop applications, and IoT devices.

How does device code flow authentication work for IoT devices?

Device code flow authentication works by having the IoT device request a code, prompting the user to visit a URL on a separate browser session to approve the login, and then polling the authorization server until successful token exchange.

Can I use device auth to obtain verifiable identity claims for AI agents?

Yes, you can use device auth to obtain verifiable BAP identity claims for AI agents. It provides a secure mechanism for autonomous services to authenticate and receive identity tokens upon successful exchange.

Is RFC 8628 device authorization suitable for desktop applications?

RFC 8628 device authorization is suitable for desktop applications, CLI tools, and IoT devices. It specifically addresses scenarios where applications cannot handle browser redirects directly, enabling authentication via a separate device.

Why does my CLI authentication require a separate browser session for login?

Your CLI authentication requires a separate browser session because the device authorization flow offloads the user approval step to a device with browser capabilities. This allows limited-input devices to securely complete token polling.