Clerk
Main entrypoint class for the Clerk SDK.
Provides access to authentication state, user information, and core functionality for managing user sessions and sign-in flows.
Properties
The current session only if its status is ACTIVE.
The current user only if the session status is ACTIVE.
Reactive state for the current client.
Clerk theme configuration for customizing the appearance of authentication UI components.
A list of enabled first factor attributes, sorted by priority.
Reactive state for initialization errors.
Indicates whether the 'First Name' field is enabled for user profiles.
Indicates whether Google One Tap sign-in is enabled for the application.
Reactive state indicating whether the Clerk SDK has completed initialization.
Indicates whether the last name field is enabled for user profiles.
Indicates whether a user is currently signed in.
Indicates whether MFA (Multi-Factor Authentication) via backup codes is enabled.
Indicates whether MFA (Multi-Factor Authentication) via phone code is enabled.
Indicates whether this Clerk instance allows multiple sessions on the same client.
Reactive state indicating whether this Clerk instance allows multiple sessions on the same client.
The active organization for the current session.
The image URL for the application logo used in authentication UI components.
Reactive image URL for the application logo used in authentication UI components.
The current user's membership in the active organization.
The URL of the Privacy Policy page for the application.
The publishable key from Clerk Dashboard used for API authentication.
Reactive state for the current user session.
Reactive state for all sessions available on the current client.
Indicates whether prebuilt UI components should display the development mode warning.
Map of available social authentication providers configured for this application.
Whether to enable telemetry for the SDK.
Functions
Provides the current foreground Activity to Clerk explicitly.
Clears the stored device token and refreshes the native Clerk state.
Returns the current device token from encrypted storage, or null if unavailable.
Initializes the Clerk SDK with the provided configuration.
Refreshes the current client and updates Clerk's reactive auth state.
Manually triggers a reinitialization attempt after a failed initialization.
Switches the active Clerk configuration in the current process.
Updates the stored device token and refreshes the native Clerk state.