{"id":27161350,"url":"https://github.com/thmslfb/auth-starter-kit","last_synced_at":"2025-06-29T15:02:03.018Z","repository":{"id":261233699,"uuid":"883691667","full_name":"thmslfb/auth-starter-kit","owner":"thmslfb","description":"🔒 A robust authentication starter kit that can be easily integrated into various web projects, providing secure user authentication and authorization.","archived":false,"fork":false,"pushed_at":"2024-11-15T10:37:34.000Z","size":373,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T15:01:42.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://auth.thomaslefebvre.fr","language":"TypeScript","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/thmslfb.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}},"created_at":"2024-11-05T12:10:19.000Z","updated_at":"2024-11-15T10:37:38.000Z","dependencies_parsed_at":"2025-04-09T00:38:38.033Z","dependency_job_id":"1b7100f5-b3cb-495b-98c9-3ca773a019d2","html_url":"https://github.com/thmslfb/auth-starter-kit","commit_stats":null,"previous_names":["thmslfb/auth-starter-kit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thmslfb/auth-starter-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmslfb%2Fauth-starter-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmslfb%2Fauth-starter-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmslfb%2Fauth-starter-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmslfb%2Fauth-starter-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thmslfb","download_url":"https://codeload.github.com/thmslfb/auth-starter-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thmslfb%2Fauth-starter-kit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262614453,"owners_count":23337275,"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","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-04-09T00:38:35.320Z","updated_at":"2025-06-29T15:02:02.827Z","avatar_url":"https://github.com/thmslfb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth Starter Kit 🚀\n\nA modern authentication starter kit built with Next.js 14, featuring multiple authentication methods and email verification.\n\n---\n\n## ✨ Features\n\n- 🔐 **Multiple authentication methods**:\n  - Email/Password with verification\n  - OAuth (Google, GitHub)\n- 📧 **Email verification system**\n- 🔑 **Password reset functionality**\n- 🎨 **Beautiful UI** built with Tailwind CSS and Shadcn/ui\n- 🛡️ **Protected routes**\n- 🔒 **Secure session management** with Lucia Auth\n- 📱 **Responsive design**\n\n## 🛠️ Tech Stack\n\n- **Next.js 14** (App Router)\n- **TypeScript**\n- **Prisma** (Database ORM)\n- **Lucia Auth** (Authentication)\n- **Resend** (Email service)\n- **Tailwind CSS**\n- **Shadcn/ui**\n- **Zod** (Schema validation)\n\n## 📋 Prerequisites\n\nBefore you begin, ensure you have:\n\n- ✅ Node.js 18+\n- ✅ PostgreSQL database\n- ✅ Resend API key\n- ✅ OAuth credentials (Google, GitHub)\n\n## 🚀 Installation\n\n### 1. Clone the repository:\n\n```bash\ngit clone https://github.com/thmslfb/auth-starter-kit.git\ncd auth-starter-kit\n```\n\n### 2. Install dependencies:\n\n```bash\nnpm install\n```\n\n### 3. Set up environment variables:\n\n```bash\ncp .env.example .env\n```\n\n### 4. Configure your `.env` file:\n\n```env\n# Database\nDATABASE_URL=\"postgresql://...\"\n\n# Authentication\nLUCIA_AUTH_URL=\"http://localhost:3000\"\n\n# Email (Resend)\nRESEND_API_KEY=\"\"\nRESEND_FROM_EMAIL=\"\"\n\n# OAuth\nGOOGLE_CLIENT_ID=\"\"\nGOOGLE_CLIENT_SECRET=\"\"\nGITHUB_CLIENT_ID=\"\"\nGITHUB_CLIENT_SECRET=\"\"\n```\n\n### 5. Initialize the database:\n\n```bash\nnpx prisma generate\nnpx prisma db push\n```\n\n## 🏃‍♂️ Development\n\nStart the development server:\n\n```bash\nnpm run dev\n```\n\n▶️ Open [http://localhost:3000](http://localhost:3000) to view the application.\n\n## 🔄 Authentication Flow\n\n### 📧 Email/Password\n\n1. User signs up with email/password\n2. Verification code is sent to email\n3. User verifies email to activate account\n\n### 🔑 OAuth (Google/GitHub)\n\n1. User clicks OAuth provider button\n2. Authenticates with provider\n3. Account is created/linked automatically\n\n### 🔐 Password Reset\n\n1. User requests password reset\n2. Reset link sent to email\n3. User sets new password\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🤝 Contributing\n\nWe welcome contributions! Here's how you can help:\n\n1. 🍴 Fork the repository\n2. 🌿 Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. 💾 Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. 📤 Push to the branch (`git push origin feature/amazing-feature`)\n5. 🎯 Open a Pull Request\n\n## 💬 Support\n\nNeed help? Please [open an issue](https://github.com/thmslfb/auth-starter-kit/issues) in the repository.\n\n## 👏 Acknowledgments\n\nSpecial thanks to these amazing projects:\n\n- [Next.js](https://nextjs.org/)\n- [Lucia Auth](https://lucia-auth.com/)\n- [Shadcn/ui](https://ui.shadcn.com/)\n- [Prisma](https://www.prisma.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthmslfb%2Fauth-starter-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthmslfb%2Fauth-starter-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthmslfb%2Fauth-starter-kit/lists"}