Skip to content

Commit

Permalink
chore(backend): Drop remotePublicInterstitial
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkl committed Nov 15, 2023
1 parent 17757b4 commit 15c8ad3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions packages/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ clerk.debugRequestState(requestState);
// Load clerk interstitial from this package
clerk.localInterstitial(options);

// Load clerk interstitial from the public Backend API endpoint
clerk.remotePublicInterstitial(options);

// Load clerk interstitial from the public Private API endpoint (Deprecated)
clerk.remotePrivateInterstitial(options);
```
Expand Down
23 changes: 0 additions & 23 deletions packages/backend/src/tokens/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,36 +80,13 @@ export function createAuthenticateRequest(params: CreateAuthenticateRequestOptio
domain: runtimeDomain || buildtimeDomain,
});

const remotePublicInterstitial = ({
publishableKey: runtimePublishableKey,
proxyUrl: runtimeProxyUrl,
isSatellite: runtimeIsSatellite,
domain: runtimeDomain,
userAgent: runtimeUserAgent,
...rest
}: LoadInterstitialOptions) => {
return loadInterstitialFromBAPI({
...rest,
apiUrl,
publishableKey: runtimePublishableKey || buildtimePublishableKey,
proxyUrl: runtimeProxyUrl || buildProxyUrl,
isSatellite: runtimeIsSatellite || buildtimeIsSatellite,
domain: (runtimeDomain || buildtimeDomain) as any,
userAgent: runtimeUserAgent || buildUserAgent,
});
};

const remotePublicInterstitialUrl = buildPublicInterstitialUrl;

// TODO: Replace this function with remotePublicInterstitial
const remotePrivateInterstitial = () => apiClient.interstitial.getInterstitial();

return {
authenticateRequest,
localInterstitial,
remotePublicInterstitial,
remotePrivateInterstitial,
remotePublicInterstitialUrl,
debugRequestState,
};
}
1 change: 0 additions & 1 deletion packages/sdk-node/src/__tests__/middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ afterEach(() => {

const mockClerkClient = () => ({
authenticateRequest: jest.fn(),
remotePublicInterstitial: jest.fn(),
remotePrivateInterstitial: jest.fn(),
localInterstitial: jest.fn(),
});
Expand Down

0 comments on commit 15c8ad3

Please sign in to comment.