Skip to content

Commit b23a007

Browse files
committed
fix(expo): Require publishableKey prop in ClerkProvider to prevent production crashes
1 parent d2cd516 commit b23a007

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

.changeset/kadi-env-var-fix.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,3 @@
33
---
44

55
fix(expo): Make publishableKey prop required and remove env var fallbacks
6-
7-
Made `publishableKey` a required prop in `ClerkProvider` since environment variables inside node_modules are not inlined during production builds. This was causing apps to work in development but crash in production TestFlight/Google Play builds because the env var would be unset.
8-
9-
**Migration:** Pass the publishable key explicitly to ClerkProvider:
10-
11-
```tsx
12-
// Before (no longer works in production)
13-
<ClerkProvider>
14-
15-
// After
16-
const publishableKey = process.env.EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY!;
17-
<ClerkProvider publishableKey={publishableKey}>
18-
```

0 commit comments

Comments
 (0)