Authentication

Start a browser login for the CLI

Changed on

RFC 8628 device authorization request. Public; returns a short user code to confirm in the browser. No credential is returned. Available only when the server enables browser login (DEVICE_AUTH_ENABLED=true); otherwise returns 503 device_auth_disabled.

post/api/auth/device/code

Request

  • Base URL
    https://demo.supercheck.dev
  • Auth
    none required

Request body application/x-www-form-urlencoded

client_id'supercheck-cli' required
client_namestring
cli_versionstring
hostnamestring

Response

Device authorization started.

device_codestring required

Secret polled by the CLI. Never display or log it.

user_codestring required
verification_uristring uri required
verification_uri_completestring uri
expires_ininteger required
intervalinteger required

Example response

{
  "user_code": "BCDF-GHJK",
  "expires_in": 900,
  "interval": 5
}

Changes