diff --git a/packages/expo/src/provider/ClerkProvider.tsx b/packages/expo/src/provider/ClerkProvider.tsx index 00e65d701f..0516e15653 100644 --- a/packages/expo/src/provider/ClerkProvider.tsx +++ b/packages/expo/src/provider/ClerkProvider.tsx @@ -1,7 +1,6 @@ import '../polyfills'; import { ClerkProvider as ClerkReactProvider } from '@clerk/clerk-react'; -import React from 'react'; import type { TokenCache } from '../caches/types'; import { isNative } from '../utils/runtime'; @@ -12,14 +11,14 @@ export type ClerkProviderProps = React.ComponentProps }; export function ClerkProvider(props: ClerkProviderProps): JSX.Element { - const { children, tokenCache, publishableKey, key, ...rest } = props; + const { children, tokenCache, publishableKey, ...rest } = props; const pk = publishableKey || process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY || process.env.CLERK_PUBLISHABLE_KEY || ''; return ( { // https://reactnative.dev/docs/0.61/network#known-issues-with-fetch-and-cookie-based-authentication requestInit.credentials = 'omit'; @@ -71,6 +72,7 @@ export function getClerkInstance(options?: BuildClerkOptions): HeadlessBrowserCl (requestInit.headers as Headers).set('authorization', jwt || ''); }); + // @ts-expect-error - This is an internal API __internal_clerk.__unstable__onAfterResponse(async (_: FapiRequestInit, response: FapiResponse) => { const authHeader = response.headers.get('authorization'); if (authHeader) { diff --git a/packages/expo/tsconfig.json b/packages/expo/tsconfig.json index 6350512eb9..53a1bad91e 100644 --- a/packages/expo/tsconfig.json +++ b/packages/expo/tsconfig.json @@ -3,7 +3,7 @@ "outDir": "dist", "baseUrl": ".", "lib": ["es6", "dom"], - "jsx": "react", + "jsx": "react-jsx", "module": "NodeNext", "moduleResolution": "NodeNext", "importHelpers": true,