switchConfiguration

fun switchConfiguration(context: Context, publishableKey: String, options: ClerkConfigurationOptions? = null, theme: ClerkTheme? = null)

Switches the active Clerk configuration in the current process.

This performs a local reset and then calls initialize with the provided configuration. Like initialize, the client/environment refresh happens asynchronously; observe isInitialized to know when the new configuration is ready.