Fix set_token_authorized_resource