Skip to content

Commit 3b760de

Browse files
committed
fix(expo): fall back to Clerk singleton when comparing configured proxy URL
1 parent d33a186 commit 3b760de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/expo/android/src/main/java/expo/modules/clerk/ClerkExpoModule.kt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ class ClerkExpoModule : Module() {
301301
}
302302

303303
val activePublishableKey = configuredPublishableKey ?: Clerk.publishableKey
304-
if (activePublishableKey != null && (activePublishableKey != pubKey || configuredProxyUrl != normalizedProxyUrl)) {
304+
val activeProxyUrl = configuredProxyUrl ?: Clerk.proxyUrl
305+
if (activePublishableKey != null && (activePublishableKey != pubKey || activeProxyUrl != normalizedProxyUrl)) {
305306
Clerk.switchConfiguration(context, pubKey, clerkConfigurationOptions(normalizedProxyUrl))
306307
startClientStateObserver()
307308
appContext.currentActivity?.let { Clerk.attachActivity(it) }

0 commit comments

Comments
 (0)