Supercheck LogoSupercheck
CLI Tokens

Approve a CLI login (browser session only)

POST
/api/auth/device/approve

Records consent for one project. Requires a signed-in browser session and a same-origin request; no key is created until the CLI exchanges the code.

Authorization

sessionCookie
cookiebetter-auth.session_token<token>

Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.

Request Body

application/json
  1. body
user_code*string
project_id*string
Formatuuid

Response Body

Recorded.

Example Request
curl -X POST 'https://app.supercheck.io/api/auth/device/approve' \  -H 'Content-Type: application/json' \  -d '{  "user_code": "string",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9"}'
Example Response
Empty