(1) When the executive authority of any state demands of the executive authority of this state any fugitive pursuant to this article and produces a copy of commitment, decree, or other process and proceedings certified as authentic by the executive authority of the state from which the person so charged has fled, with an affidavit made before a proper officer showing the person to be such fugitive, it is the duty of the executive authority of this state to cause immediate notice of the apprehension to be given to the executive authority making such demand or to the agent of such executive authority appointed to receive the fugitive and to cause the fugitive to be delivered to such agent when he appears. If no such agent appears within thirty days from the time of the apprehension, the fugitive may be discharged. Any agent so appointed who receives the fugitive into his custody shall transmit him to the state from which he has fled.
(2) All costs and expenses incurred in apprehending, securing, maintaining, and transmitting such fugitive to the state making such demand shall be paid by such state.
(3) The executive authority of this state has the power, on the application of any person interested, to demand the return of any fugitive from this state in accordance with this article.