{"id":44542080,"url":"https://github.com/clerk/clerk-convex-swift","last_synced_at":"2026-02-13T19:01:04.311Z","repository":{"id":337903391,"uuid":"1150948741","full_name":"clerk/clerk-convex-swift","owner":"clerk","description":"ClerkConvex helps developers add Clerk-powered user management to Convex Swift apps. We automatically sync sessions and tokens so users can sign in once and stay authenticated.","archived":false,"fork":false,"pushed_at":"2026-02-11T21:46:24.000Z","size":111,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-12T06:06:20.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clerk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-05T21:57:14.000Z","updated_at":"2026-02-11T21:46:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/clerk/clerk-convex-swift","commit_stats":null,"previous_names":["clerk/clerk-convex-swift"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/clerk/clerk-convex-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-convex-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-convex-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-convex-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-convex-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clerk","download_url":"https://codeload.github.com/clerk/clerk-convex-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clerk%2Fclerk-convex-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-13T19:00:35.792Z","updated_at":"2026-02-13T19:01:04.290Z","avatar_url":"https://github.com/clerk.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClerkConvex\n\n**Status:** 🚧 Work in Progress — contents are unstable and subject to change.\n\n`ClerkConvex` is a Swift package that bridges Clerk and Convex by automatically syncing Clerk session auth into `ConvexClientWithAuth`.\n\n## Getting Started\n\nIf you haven't started a Convex app yet, begin with the\n[Convex Swift quickstart](https://docs.convex.dev/quickstart/swift) to get a working\nSwift app connected to Convex.\n\nOnce you have a working Convex + Swift app, use the steps below to integrate Clerk.\nFollow the [Clerk iOS quickstart](https://clerk.com/docs/ios/getting-started/quickstart) for app-side Clerk setup details.\n\n1. Set up Clerk in your iOS app (create an app in Clerk, get your publishable key, and add Clerk SDK dependencies).\n2. Configure Convex auth by creating `convex/auth.config.ts`:\n\n```typescript\nexport default {\n  providers: [\n    {\n      domain: \"YOUR_CLERK_ISSUER_URL\",\n      applicationID: \"convex\",\n    },\n  ],\n};\n```\n\n3. Run `npx convex dev` to sync backend auth configuration.\n4. Add `ClerkConvex` to your app.\n5. Wherever you currently create `ConvexClient`, switch to `ConvexClientWithAuth` and pass `ClerkConvexAuthProvider`:\n\n```swift\nimport ClerkKit\nimport ClerkConvex\nimport ConvexMobile\n\nClerk.configure(publishableKey: \"YOUR_CLERK_PUBLISHABLE_KEY\")\n\nlet client = ConvexClientWithAuth(\n  deploymentUrl: \"YOUR_CONVEX_DEPLOYMENT_URL\",\n  authProvider: ClerkConvexAuthProvider()\n)\n```\n\n6. Authenticate users via Clerk; auth state is automatically synced to Convex.\n\n### Reacting to authentication state\n\nThe `ConvexClientWithAuth.authState` field is a `Publisher` that contains the latest authentication state from the client. You can set up your UI to react to new `authState` values and show the appropriate screens (e.g. login/logout buttons, loading screens, authenticated content).\n\n## Example App\n\nThis repo includes a full example app at `Example/WorkoutTracker`.\n\nOpen `ClerkConvex.xcworkspace` and run the `WorkoutTracker` scheme.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclerk%2Fclerk-convex-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclerk%2Fclerk-convex-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclerk%2Fclerk-convex-swift/lists"}