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.
Indicates whether the biometric credential enrollment prompt should be offered after sign-in.
Indicates whether the biometric credential enrollment prompt should be offered after sign-up.
The main entry point for biometric credential operations.
Indicates whether biometric sign-in is enabled for this instance.
Reactive state for the current client.
Billing flags from /v1/environment.
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.
Whether authentication and Clerk-owned post-authentication steps are currently complete.
Reactive state indicating whether authentication and Clerk-owned post-authentication steps are complete.
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.
The main entry point for Google Play Restore Credentials operations.
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.
The support email address configured for this application in the Clerk Dashboard.
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.
Returns whether the signed-in user passes the given authorization checks against the activeSession. Returns false when no user is signed in or when the current session is not ACTIVE (e.g., PENDING while session tasks are outstanding). See Session.checkAuthorization.
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.
Reloads Clerk authentication state persisted by a same-signed sibling app.
Switches the active Clerk configuration in the current process.
Updates the stored device token and refreshes the native Clerk state.