---
title: "Device authorization page"
method: GET
path: "/auth/device"
tags: ["Authentication"]
---

# Device authorization page

`GET /auth/device`

Better Auth serves this as JSON. A top-level browser navigation is redirected to the web app's device screen instead, so opening the URL by hand shows a page rather than a JSON blob.

## Query parameters

- `user_code` string — The device authorization user code.
- `ui` '1' — Force a redirect to the web UI, for clients that do not send Sec-Fetch-* headers.

## Response `200`

Device authorization payload from Better Auth

## Other responses

- `302` — Redirects the browser to the web app device screen

## Changes

- **2026-08-24** `08bbb5bedb5d` — 1 breaking
  - removed the media type `application/json` for the response with the status `200`
- **2026-07-11** `32cece1ebe43` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/auth/device/get.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) · [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usekaneo/kaneo-api/revisions/9d1da42c10ce/schema)
