Apple Inc. will face off against potentially millions of customers after a federal judge granted certification of a nationwide class alleging that its use of refurbished parts to replace iPhones, iPads and iPods breached extended warranties that promised “equivalent or new” replacement devices.

In a Tuesday order, U.S. District Judge William Orrick of the Northern District of California in San Francisco granted class certification of the case, brought by two Apple customers who signed up to AppleCare and AppleCare+ extended warranty agreements, while refusing to toss consumer fraud and breach of contract claims on summary judgment.