{"id":23658222,"url":"https://github.com/timooo-thy/nextauth-v5-b16-template","last_synced_at":"2026-04-10T01:03:24.514Z","repository":{"id":233280815,"uuid":"786425044","full_name":"timooo-thy/nextauth-v5-b16-template","owner":"timooo-thy","description":"Auth.js V5 Beta 16 Template","archived":false,"fork":false,"pushed_at":"2024-04-17T17:40:30.000Z","size":913,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T00:06:39.382Z","etag":null,"topics":["authjs","nextauth","nextjs","prisma","sqlite","turso","vercel"],"latest_commit_sha":null,"homepage":"https://authjs-v5-b16-template.vercel.app/","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/timooo-thy.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-04-14T12:29:39.000Z","updated_at":"2024-04-23T05:12:10.000Z","dependencies_parsed_at":"2024-04-15T13:21:14.258Z","dependency_job_id":"f24d24f5-94b1-42bc-80f0-5f8785f38b63","html_url":"https://github.com/timooo-thy/nextauth-v5-b16-template","commit_stats":null,"previous_names":["timooo-thy/nextauth-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timooo-thy%2Fnextauth-v5-b16-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timooo-thy%2Fnextauth-v5-b16-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timooo-thy%2Fnextauth-v5-b16-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timooo-thy%2Fnextauth-v5-b16-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timooo-thy","download_url":"https://codeload.github.com/timooo-thy/nextauth-v5-b16-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239639197,"owners_count":19672775,"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":["authjs","nextauth","nextjs","prisma","sqlite","turso","vercel"],"created_at":"2024-12-29T00:05:56.060Z","updated_at":"2025-11-27T05:30:16.587Z","avatar_url":"https://github.com/timooo-thy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js 14 with Auth.js v5 and SQLite Template\n\nThis template demonstrates the integration of Next.js 14 with Auth.js v5, using a Turso SQLite database through the Prisma adapter. It showcases how to implement authentication on both the server and client sides, leveraging Vercel's edge functions for optimal performance and scalability. The template includes OAuth with Google and email management using Resend.\n\n## Features\n\n- **Next.js 14.2.1**: Utilises the latest features of Next.js for enhanced SSR, API routes, and middleware support.\n- **Auth.js v5 Beta 16**: Implements robust authentication handling with the latest version of Auth.js.\n- **Prisma Adapter**: Uses Prisma as the ORM for straightforward database operations with SQLite.\n- **Vercel Edge Functions**: Deployed with Vercel's edge functions for fast, globally distributed server-side logic.\n- **Google OAuth**: Integrates Google for OAuth to facilitate easy and secure logins.\n- **Email Handling with Resend**: Manages email sending and verification processes with magic links.\n\n## Prerequisites\n\n- Node.js\n- Vercel CLI (for deployment)\n- SQLite and Turso CLI\n\n## Getting Started\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/timooo-thy/nextauth-template.git\n   cd nextauth-template\n2. Install dependencies:\n   ```bash\n   bun install\n3. Download Turso CLI\n\n   MacOS\n   ```bash\n   brew install tursodatabase/tap/turso\n   turso auth login\n   ```\n   Windows\n   ```bash\n   curl -sSfL https://get.tur.so/install.sh | bash\n   turso auth login\n   ```\n   \n3. Set up SQLite in Turso CLI \n   ```bash\n   turso db create turso-prisma-db\n   turso db show turso-prisma-db\n   turso db tokens create turso-prisma-db\n4. Apply prisma migration\n   ```bash\n   turso db shell turso-prisma-db \u003c ./prisma/migrations/20240414083726_init/migration.sql\n5. Obtain your OAuth Google API keys and set up Resend API key and domain.\n6. Create a .env file in the root of your project and update it accordingly to .env.example:\n   ```bash\n   AUTH_SECRET=\n   AUTH_GOOGLE_ID=\n   AUTH_GOOGLE_SECRET=\n   AUTH_RESEND_KEY=\n   TURSO_AUTH_TOKEN=\n   TURSO_DATABASE_URL=\n   DOMAIN_EMAIL=\n7. Start the development server with:\n   ```bash\n   bun run dev\n\n## Usage\nThe template includes basic user authentication flows:\n\n- Sign In: Demonstrates client and server-side authentication handling.\n- Sign Out: Secure user logout implementation.\n- User Session Management: Utilises edge functions to manage user sessions effectively.\n- Google OAuth: Provides an option for users to log in using their Google accounts.\n   \n## Contributing\nContributions are welcome! Please feel free to submit pull requests, create issues, or provide feedback.\n\n   \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimooo-thy%2Fnextauth-v5-b16-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimooo-thy%2Fnextauth-v5-b16-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimooo-thy%2Fnextauth-v5-b16-template/lists"}