ClerkConfigurationOptions

data class ClerkConfigurationOptions(val enableDebugMode: Boolean = false, val proxyUrl: String? = null, val telemetryEnabled: Boolean = true, val sharedSessionSync: SharedSessionSyncConfig? = null)

Data class for enabling extra functionality on the Clerk SDK.

Constructors

Link copied to clipboard
constructor(enableDebugMode: Boolean = false, proxyUrl: String? = null, telemetryEnabled: Boolean = true, sharedSessionSync: SharedSessionSyncConfig? = null)

Properties

Link copied to clipboard

Whether the client and environment are refreshed from the server every time the app returns to the foreground. Defaults to true.

Link copied to clipboard

Additional headers to append to outgoing Clerk API requests.

Link copied to clipboard

If true, enables verbose logging for SDK operations and API calls. Defaults to false.

Link copied to clipboard

Optional proxy URL for network requests Your Clerk app's proxy URL. Required for applications that run behind a reverse proxy. Must be a full https URL (for example, https://proxy.example.com/__clerk) with no credentials, query or fragment.

Link copied to clipboard

Optional configuration for synchronizing Clerk state between same-signed sibling apps that use the same publishable key.

Link copied to clipboard

Whether to enable telemetry for this SDK instance.

Link copied to clipboard

Whether the UI library shows its update-required screen over your app automatically when the app's versionCode is older than the minimum set in the Clerk Dashboard. Defaults to true.

Functions

Link copied to clipboard

Returns a copy of these options with additional outgoing request headers configured.

Link copied to clipboard

Returns a copy of these options that skips the client and environment refresh on app foreground. Intended for host SDKs (for example, the Expo SDK) that own client state and perform their own refreshes; the initial refresh during Clerk.initialize and periodic session token refresh are unaffected. While Clerk.appVersionSupportStatus is unsupported, the foreground refresh still runs, so lowering the minimum in the Clerk Dashboard lifts the block.

Link copied to clipboard

Returns a copy of these options that stops the UI library from showing its update-required screen automatically. Collect Clerk.appVersionSupportStatus to show your own update UI instead.