Changed field `id` to `uid` to generate correct token