initialize
Initializes the Clerk SDK with the provided configuration.
This method must be called before using any other Clerk functionality. It configures the API client, initializes local storage, and begins the authentication state setup. Observe isInitialized to know when the SDK is ready.
Parameters
The application context used for initialization and storage setup.
The publishable key from your Clerk Dashboard that connects your app to Clerk. This key should be in the format pk_test_... or pk_live_....
Throws
if the publishable key format is invalid.
Initializes the Clerk SDK with the provided configuration.
This method must be called before using any other Clerk functionality. It configures the API client, initializes local storage, and begins the authentication state setup.
Parameters
The application context used for initialization and storage setup.
The publishable key from your Clerk Dashboard that connects your app to Clerk. This key should be in the format pk_test_... or pk_live_....
Optional configuration for enabling extra functionality. See ClerkConfigurationOptions for details.
Optional theme to customize the appearance of Clerk UI components. See ClerkTheme for details.
Throws
if the publishable key format is invalid, or if ClerkConfigurationOptions.proxyUrl is not an https URL with a host and no credentials, query or fragment.