Skip to content

Commit

Permalink
feat(clerk-expo): Adjust how we set sdkMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
BRKalow committed Oct 11, 2023
1 parent dd4c507 commit e5fedd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/expo/src/singleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { HeadlessBrowserClerk } from '@clerk/clerk-react';

import type { TokenCache } from './cache';

const SDK_METADATA = {
Clerk.sdkMetadata = {
name: PACKAGE_NAME,
version: PACKAGE_VERSION,
};
Expand Down Expand Up @@ -32,8 +32,6 @@ export function buildClerk({ key, tokenCache }: BuildClerkOptions): HeadlessBrow
// TODO: DO NOT ACCEPT THIS
clerk = new Clerk(key);

clerk.sdkMetadata = SDK_METADATA;

// @ts-expect-error
clerk.__unstable__onBeforeRequest(async (requestInit: FapiRequestInit) => {
// https://reactnative.dev/docs/0.61/network#known-issues-with-fetch-and-cookie-based-authentication
Expand Down

0 comments on commit e5fedd6

Please sign in to comment.