Skip to content

Commit 530dbe2

Browse files
committed
chore(*): Drop using empty frontendApi string on local interstitial
1 parent c02c84b commit 530dbe2

File tree

5 files changed

+1
-10
lines changed

5 files changed

+1
-10
lines changed

packages/fastify/src/withClerkMiddleware.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export const withClerkMiddleware = (options: ClerkFastifyOptions) => {
4141
}
4242

4343
if (requestState.isInterstitial) {
44-
// TODO(@dimkl): use empty string for frontendApi until type is fixed in @clerk/backend to drop it
45-
const interstitialHtmlPage = clerkClient.localInterstitial({ publishableKey, frontendApi: '' });
44+
const interstitialHtmlPage = clerkClient.localInterstitial({ publishableKey });
4645

4746
return reply
4847
.code(401)

packages/gatsby-plugin-clerk/src/ssr/withServerAuth.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ export const withServerAuth: WithServerAuth = (cbOrOptions: any, options?: any):
2525
[constants.Headers.AuthMessage]: requestState.message,
2626
[constants.Headers.AuthStatus]: requestState.status,
2727
};
28-
// TODO(@dimkl): use empty string for frontendApi until type is fixed in @clerk/backend to drop it
2928
const interstitialHtml = clerkClient.localInterstitial({
30-
frontendApi: '',
3129
publishableKey: PUBLISHABLE_KEY,
3230
});
3331
return injectSSRStateIntoProps({ headers }, { __clerk_ssr_interstitial_html: interstitialHtml });

packages/nextjs/src/server/authenticateRequest.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ export const handleUnknownState = (requestState: RequestState) => {
3737
export const handleInterstitialState = (requestState: RequestState, opts: WithAuthOptions) => {
3838
const response = new NextResponse(
3939
clerkClient.localInterstitial({
40-
// TODO(@dimkl): use empty string for frontendApi until type is fixed in @clerk/backend to drop it
41-
frontendApi: '',
4240
publishableKey: opts.publishableKey || PUBLISHABLE_KEY,
4341
clerkJSUrl: CLERK_JS_URL,
4442
clerkJSVersion: CLERK_JS_VERSION,

packages/remix/src/ssr/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ export const interstitialJsonResponse = (
8686
__loader: opts.loader,
8787
__clerk_ssr_interstitial_html: loadInterstitialFromLocal({
8888
debugData: debugRequestState(requestState),
89-
// TODO(@dimkl): use empty string for frontendApi until type is fixed in @clerk/backend to drop it
90-
frontendApi: '',
9189
publishableKey: requestState.publishableKey,
9290
// TODO: This needs to be the version of clerk/remix not clerk/react
9391
// pkgVersion: LIB_VERSION,

packages/sdk-node/src/authenticateRequest.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export async function loadInterstitial({
2121
*/
2222
if (requestState.publishableKey) {
2323
return clerkClient.localInterstitial({
24-
// TODO(@dimkl): use empty string for frontendApi until type is fixed in @clerk/backend to drop it
25-
frontendApi: '',
2624
publishableKey: requestState.publishableKey,
2725
proxyUrl: requestState.proxyUrl,
2826
signInUrl: requestState.signInUrl,

0 commit comments

Comments
 (0)