Skip to content

Commit

Permalink
chore(remix): Drop createIsomorphicRequest usage since Remix request …
Browse files Browse the repository at this point in the history
…is already of type Request
  • Loading branch information
dimkl committed Jul 19, 2023
1 parent 70150c4 commit 12bec2e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/remix/src/ssr/authenticateRequest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { RequestState } from '@clerk/backend';
import { buildRequestUrl, Clerk, createIsomorphicRequest } from '@clerk/backend';
import { buildRequestUrl, Clerk } from '@clerk/backend';
import { handleValueOrFn, isHttpOrHttps, isProxyUrlRelative } from '@clerk/shared';

import {
Expand Down Expand Up @@ -96,11 +96,6 @@ export function authenticateRequest(args: LoaderFunctionArgs, opts: RootAuthLoad
isSatellite,
domain,
signInUrl,
request: createIsomorphicRequest((Request, Headers) => {
return new Request(requestURL, {
method: request.method,
headers: new Headers(request.headers),
});
}),
request,
});
}

0 comments on commit 12bec2e

Please sign in to comment.