Clerk Convex Auth Provider
An AuthProvider that bridges Clerk authentication with Convex.
Uses Clerk's session management and JWT token generation to authenticate with a Convex backend. Automatically listens for session state changes and syncs Convex authentication accordingly.
Users must first sign in using Clerk. This provider then syncs Convex authentication automatically — no manual client.login() call is required.
See also
Convex Client With Auth
Functions
Link copied to clipboard
fun ClerkConvexAuthProvider.createConvexClientWithAuth(deploymentUrl: String, context: Context): ConvexClientWithAuth<String>
Creates a dev.convex.android.ConvexClientWithAuth using this provider and starts Clerk session synchronization.
Link copied to clipboard
Link copied to clipboard