Client Auth

Approve or deny a device authorization request

Changed on

User-facing endpoint for the device authorization flow. After a CLI displays a user code, the authenticated user visits the verification page and calls this endpoint to approve or deny the request. Requires user authentication via the Privy SDK.

post/api/oauth/v2/device_verify

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/api/oauth/v2/device_verify
  • Auth
    none declared. Required headers: privy-app-id

Headers

privy-app-idstring required

ID of your Privy app.

Request body

user_codestring required

The user code displayed on the CLI device.

action'approve' | 'deny' required

The action to take on the device authorization request.

Response

The device authorization action was processed successfully.

successboolean required

Whether the action was processed successfully.

Changes