Skip to content

Commit 225abee

Browse files
committed
fix(expo): gate native_api_disabled console.error behind __DEV__
1 parent 6e42996 commit 225abee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/expo/src/provider/singleton/createClerkInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function createClerkInstance(ClerkClass: typeof Clerk) {
187187
await saveToken(CLERK_CLIENT_JWT_KEY, authHeader);
188188
}
189189

190-
if (!nativeApiErrorShown && response.payload?.errors?.[0]?.code === 'native_api_disabled') {
190+
if (__DEV__ && !nativeApiErrorShown && response.payload?.errors?.[0]?.code === 'native_api_disabled') {
191191
console.error(
192192
'The Native API is disabled for this instance.\nGo to Clerk Dashboard > Configure > Native applications to enable it.\nOr, navigate here: https://dashboard.clerk.com/last-active?path=native-applications',
193193
);

0 commit comments

Comments
 (0)