Skip to main content

verify_post

Function verify_post 

Source
pub async fn verify_post(
    __arg0: State<Arc<OAuthState>>,
    headers: HeaderMap,
    __arg2: Form<VerifyForm>,
) -> Response
Expand description

POST /oauth/device/verify — Handle Ed25519 challenge-response verification

Returns HTML for browser clients and JSON for CLI clients (detected via Accept: application/json). The sign-challenge CLI sends Accept: application/json to get structured errors instead of having to parse HTML.