Authentication

Device authorization page

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.

get/auth/device

Query parameters

user_codestring

The device authorization user code.

The device authorization user code.

ui'1'

Force a redirect to the web UI, for clients that do not send Sec-Fetch-* headers.

Force a redirect to the web UI, for clients that do not send Sec-Fetch-* headers.

Response

Device authorization payload from Better Auth

Changes

Changed in 2 of the 23 revisions of this API.11