Skip to main content

approve_device

Function approve_device 

Source
async fn approve_device(
    conn: &mut PgConnection,
    user_code: &str,
    user_id: Uuid,
) -> Result<(), ControllerError>
Expand description

Core of POST /device_verification/approve: persist consent (always, never short-circuited) then approve the pending grant, binding it to user_id.