Skip to main content

device_nonce

Function device_nonce 

Source
pub async fn device_nonce(
    __arg0: State<Arc<OAuthState>>,
    __arg1: Query<VerifyQuery>,
) -> Response
Expand description

GET /oauth/device/nonce — JSON nonce endpoint for CLI sign-challenge helper.

Returns: {"user_code": "...", "nonce": "..."} The full challenge to sign is: "{username}:{user_code}:{nonce}"