Fix resource to use token instead of id.