{"id":30202828,"url":"https://github.com/workos/template-convex-nextjs-authkit","last_synced_at":"2025-08-13T11:08:10.312Z","repository":{"id":305779696,"uuid":"1019730012","full_name":"workos/template-convex-nextjs-authkit","owner":"workos","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-28T13:03:29.000Z","size":25,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T13:56:30.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-07-14T19:26:23.000Z","updated_at":"2025-07-28T13:03:33.000Z","dependencies_parsed_at":"2025-07-22T01:44:20.769Z","dependency_job_id":"fb29d386-c595-411a-985a-0bc2acd48f13","html_url":"https://github.com/workos/template-convex-nextjs-authkit","commit_stats":null,"previous_names":["workos/template-convex-nextjs-authkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/workos/template-convex-nextjs-authkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Ftemplate-convex-nextjs-authkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Ftemplate-convex-nextjs-authkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Ftemplate-convex-nextjs-authkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Ftemplate-convex-nextjs-authkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workos","download_url":"https://codeload.github.com/workos/template-convex-nextjs-authkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workos%2Ftemplate-convex-nextjs-authkit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270228408,"owners_count":24548821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-13T11:08:06.711Z","updated_at":"2025-08-13T11:08:10.288Z","avatar_url":"https://github.com/workos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to your Convex + Next.js + WorkOS AuthKit app\n\nThis is a [Convex](https://convex.dev/) project migrated to use WorkOS AuthKit for authentication.\n\nAfter the initial setup (\u003c2 minutes) you'll have a working full-stack app using:\n\n- Convex as your backend (database, server logic)\n- [React](https://react.dev/) as your frontend (web page interactivity)\n- [Next.js](https://nextjs.org/) for optimized web hosting and page routing\n- [Tailwind](https://tailwindcss.com/) for building great looking accessible UI\n- [WorkOS AuthKit](https://authkit.com/) for authentication\n\n## Get started\n\n1. Clone this repository and install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n2. Set up your environment variables:\n   ```bash\n   cp .env.local.example .env.local\n   ```\n3. Configure WorkOS AuthKit:\n   - Create a [WorkOS account](https://workos.com/)\n   - Get your Client ID and API Key from the WorkOS dashboard\n   - In the WorkOS dashboard, add `http://localhost:3000/callback` as a redirect URI\n   - Generate a secure password for cookie encryption (minimum 32 characters)\n   - Update your `.env.local` file with these values\n\n4. Configure Convex:\n\n   ```bash\n   npx convex dev\n   ```\n\n   This will:\n   - Set up your Convex deployment\n   - Add your Convex URL to `.env.local`\n   - Open the Convex dashboard\n\n   Then configure WorkOS authentication in Convex:\n\n   ```bash\n   npx convex auth add workos\n   ```\n\n   This creates `convex/auth.config.ts` with WorkOS integration\n\n5. Run the development server:\n\n   ```bash\n   npm run dev\n   ```\n\n   This starts both the Next.js frontend and Convex backend in parallel\n\n6. Open [http://localhost:3000](http://localhost:3000) to see your app\n\n## WorkOS AuthKit Setup\n\nThis app uses WorkOS AuthKit for authentication. Key features:\n\n- **Redirect-based authentication**: Users are redirected to WorkOS for sign-in/sign-up\n- **Session management**: Automatic token refresh and session handling\n- **Middleware protection**: Routes are protected using Next.js middleware\n- **Client and server hooks**: `useAuth()` for client components, `withAuth()` for server components\n\n## Learn more\n\nTo learn more about developing your project with Convex, check out:\n\n- The [Tour of Convex](https://docs.convex.dev/get-started) for a thorough introduction to Convex principles.\n- The rest of [Convex docs](https://docs.convex.dev/) to learn about all Convex features.\n- [Stack](https://stack.convex.dev/) for in-depth articles on advanced topics.\n\n## Join the community\n\nJoin thousands of developers building full-stack apps with Convex:\n\n- Join the [Convex Discord community](https://convex.dev/community) to get help in real-time.\n- Follow [Convex on GitHub](https://github.com/get-convex/), star and contribute to the open-source implementation of Convex.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Ftemplate-convex-nextjs-authkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkos%2Ftemplate-convex-nextjs-authkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkos%2Ftemplate-convex-nextjs-authkit/lists"}