Initiate a client grant request
Public — the caller has no credentials yet. Generates a grant_code
(long secret used by the polling client) and a user_code (short code
shown to the user for visual verification). Both are stored in Redis
with a 15-minute TTL.
POST
Initiate a client grant request
Authorizations
Body
application/json
Request body for POST /auth/grant/code. client_type is required so the
authorizing user always sees what kind of client they are approving; pass
other if no specific category fits.
Response
Grant initiated.
Response from POST /auth/grant/code. Returns the long-secret grant_code
that only the polling client should ever see, plus a short user_code
that the user verifies on the dashboard authorize page.