reinitialize

Manually triggers a reinitialization attempt after a failed initialization.

This method is useful when initialization has failed (e.g., due to network issues when the app was cold-started by a push notification) and you want to retry after conditions have improved.

The SDK automatically retries initialization with exponential backoff, capped at one minute between attempts, and retries when connectivity returns. This method starts an immediate retry.

Example usage:

// In your ViewModel or Activity
if (Clerk.initializationError.value != null && !Clerk.isInitialized.value) {
val started = Clerk.reinitialize()
if (started) {
// Wait for isInitialized to become true
}
}

Return

true if reinitialization was started, false if the SDK is not configured or is already initialized.