diff --git a/packages/backend/src/api/endpoints/InterstitialApi.ts b/packages/backend/src/api/endpoints/InterstitialApi.ts deleted file mode 100644 index 2ce6cc967c..0000000000 --- a/packages/backend/src/api/endpoints/InterstitialApi.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { deprecated } from '../../util/shared'; -import { AbstractAPI } from './AbstractApi'; -/** - * @deprecated Switch to the public interstitial endpoint from Clerk Backend API. - */ -export class InterstitialAPI extends AbstractAPI { - public async getInterstitial() { - deprecated( - 'getInterstitial()', - 'Switch to `Clerk(...).localInterstitial(...)` from `import { Clerk } from "@clerk/backend"`.', - ); - - return this.request({ - path: 'internal/interstitial', - method: 'GET', - headerParams: { - 'Content-Type': 'text/html', - }, - }); - } -} diff --git a/packages/backend/src/api/endpoints/index.ts b/packages/backend/src/api/endpoints/index.ts index b0098db07c..0d7f31061e 100644 --- a/packages/backend/src/api/endpoints/index.ts +++ b/packages/backend/src/api/endpoints/index.ts @@ -4,7 +4,6 @@ export * from './ClientApi'; export * from './DomainApi'; export * from './EmailAddressApi'; export * from './EmailApi'; -export * from './InterstitialApi'; export * from './InvitationApi'; export * from './OrganizationApi'; export * from './OrganizationRoleApi'; diff --git a/packages/backend/src/api/factory.ts b/packages/backend/src/api/factory.ts index 4da11471a5..38257041bc 100644 --- a/packages/backend/src/api/factory.ts +++ b/packages/backend/src/api/factory.ts @@ -4,7 +4,6 @@ import { DomainAPI, EmailAddressAPI, EmailAPI, - InterstitialAPI, InvitationAPI, OrganizationAPI, OrganizationPermissionAPI, @@ -28,7 +27,6 @@ export function createBackendApiClient(options: CreateBackendApiOptions) { clients: new ClientAPI(request), emailAddresses: new EmailAddressAPI(request), emails: new EmailAPI(request), - interstitial: new InterstitialAPI(request), invitations: new InvitationAPI(request), organizations: new OrganizationAPI(request), organizationRoles: new OrganizationRoleAPI(request),