WASHINGTON (AP) — President Donald Trump last week signed an executive order to keep TikTok running in the United States for another 90 days to give his administration more time to broker a deal to bring the social media platform under American ownership.

Trump disclosed the executive order on the Truth Social platform.

“He’s making an extension so we can get this deal done,” White House press secretary Karoline Leavitt told reporters. “It’s wildly popular. He also wants to protect Americans’ data and privacy concerns on this app. And he believes we can do both at the same time.”

It is the third time Trump has extended the deadline. The first one was through an executive order on Jan. 20, his first day in office, after the platform went dark briefly when a national ban — approved by Congress and upheld by the U.S. Supreme Court — took effect. The second was in April when White House officials believed they were nearing a deal to spin off TikTok into a new company with U.S. ownership that fell apart after China backed out following Trump’s tariff announcement.

It is not clear how many times Trump can — or will — keep extending the ban as the government continues to try to negotiate a deal for TikTok, which is owned by China’s ByteDance. While there is no clear legal basis for the extensions, so far there have been no legal challenges to fight them. Trump has amassed more than 15 million followers on TikTok since he joined last year, and he has credited the trendsetting platform with helping him gain traction among young voters. He said in January that he has a “warm spot for TikTok.”

TikTok praised Trump for signing an extension.

“We are grateful for President Trump’s leadership and support in ensuring that TikTok continues to be available for more than 170 million American users and 7.5 million U.S. businesses that rely on the platform as we continue to work with Vice President Vance’s Office,” the company said in a statement.

The decision to keep TikTok alive through an executive order has received some scrutiny, but it has not faced a legal challenge in court.

For now, TikTok continues to function for its 170 million users in the United States, and tech giants Apple, Google and Oracle were persuaded to continue to offer and support the app, on the promise the Justice Department would not use the law to seek potentially steep fines against them.