Clerk TanStack React Start SDK
The Clerk TanStack React Start SDK gives you access to prebuilt components, React hooks, and helpers to make user authentication easier. Refer to the quickstart guide to get started.
Client-side helpers
Because the TanStack React Start SDK is built on top of the React SDK, you can use the hooks that the React SDK provides. These hooks include access to the Clerk object, User object, Organization object, and a set of useful helper methods for signing in and signing up. Learn more in the Clerk React SDK reference.
- useUser()
- useClerk()
- useAuth()
- useSignIn()
- useSignUp()
- useWaitlist()
- useSession()
- useSessionList()
- useOrganization()
- useOrganizationList()
- useOrganizationCreationDefaults()
- useReverification()
- useCheckout()
- usePaymentElement()
- usePaymentMethods()
- usePlans()
- useSubscription()
- usePaymentAttempts()
- useStatements()
- useAPIKeys()
Server-side helpers
The following references show how to integrate Clerk features into applications using TanStack React Start server functions and API routes.
clerkClient
clerkClient is a wrapper around the Backend API that makes it easier to interact with the API. For example, to retrieve a list of all users in your application, you can use the users.getUserList() method instead of manually making a fetch request to the https://api.clerk.com/v1/users endpoint.
To access a resource, you must first instantiate a clerkClient instance. See the reference documentation for more information.
Auth object
The auth() returns an Auth object. This JavaScript object contains important information like session data, your user's ID, as well as their Organization ID. Learn more about the Auth object here.
Objects
Learn about the key Clerk objects that power many of Clerk's SDKs.
Types
See the reference docs on types to get more information about the different types available for typing your application.
Feedback
Last updated on