{"id":22697097,"url":"https://github.com/patelvivekdev/authjs-template","last_synced_at":"2025-10-31T10:50:23.759Z","repository":{"id":241446248,"uuid":"805146618","full_name":"patelvivekdev/AuthJs-Template","owner":"patelvivekdev","description":"A template repo for starting authentication in your upcoming Next.js application. Used Drizzle, Auth.js(Next-Auth), Turso.","archived":false,"fork":false,"pushed_at":"2025-01-29T20:12:04.000Z","size":2780,"stargazers_count":53,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T04:46:11.048Z","etag":null,"topics":["2fa","acertinityui","authjs","authjs-template","drizzle-orm","libsql","magicui","next-auth","nextjs14","passkeys","react19","turso","two-factor-authentication","webauthn"],"latest_commit_sha":null,"homepage":"https://authjs-template.patelvivek.dev","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/patelvivekdev.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}},"created_at":"2024-05-24T01:20:42.000Z","updated_at":"2025-04-11T00:22:35.000Z","dependencies_parsed_at":"2025-01-29T21:33:26.371Z","dependency_job_id":null,"html_url":"https://github.com/patelvivekdev/AuthJs-Template","commit_stats":null,"previous_names":["patelvivekdev/drizzle-next-auth-turso"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/patelvivekdev/AuthJs-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2FAuthJs-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2FAuthJs-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2FAuthJs-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2FAuthJs-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patelvivekdev","download_url":"https://codeload.github.com/patelvivekdev/AuthJs-Template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patelvivekdev%2FAuthJs-Template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281976634,"owners_count":26592972,"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-10-31T02:00:07.401Z","response_time":57,"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":["2fa","acertinityui","authjs","authjs-template","drizzle-orm","libsql","magicui","next-auth","nextjs14","passkeys","react19","turso","two-factor-authentication","webauthn"],"created_at":"2024-12-10T05:12:07.037Z","updated_at":"2025-10-31T10:50:23.745Z","avatar_url":"https://github.com/patelvivekdev.png","language":"TypeScript","readme":"# AuthJs Template\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://deepwiki.com/patelvivekdev/AuthJs-Template\"\u003e\u003cimg src=\"https://deepwiki.com/badge.svg\" alt=\"Ask DeepWiki\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003e Updated to nextjs15 and react19.\n\nA template repo for starting authentication in your upcoming Next.js application. Used Drizzle, Auth.js(Next-Auth), Turso.\n\n![Image](./public/authjs-template.png)\n\n## What's inside?\n\n- How to setup Credentials login with username/password in NextJs.\n- How to setup Two factor in NextJs.\n- How to setup Passkey in NextJs.\n- How to setup Oauth Login in NextJs.\n- How to Link accounts in NextJs.\n\nAll of these with Next-auth(AuthJs v5) and Nextjs 15 App router\n\n---\n\n## Basic\n\n- [x] Register | Public\n- [x] Login | Public\n- [x] Credentials Login | Public\n- [x] Social Login(Google, Github) | Public\n- [x] Email Verification | Public\n\n## Password Reset\n\n- [x] Password Reset (email link) | Public\n- [x] change password(Email user can change password) | Protected\n- [x] Add Password(Oauth user can set Password.) | Protected\n\n## Profile Update\n\n- [ ] Profile Update | Protected\n- [ ] Profile Picture Update | Protected\n- [ ] Email Update | Protected\n- [ ] Username Update | Protected\n- [x] Delete Account | Protected\n\n## Link Accounts\n\n- [x] Account linking | Protected\n- [x] Account Unlinking | Protected\n\n## Two Factor Authentication\n\n- [x] Two Factor - Register with QRCode | Protected\n- [x] Two Factor - Verify after register | Protected\n- [x] Two Factor - Used After login(Oauth as well as Credentials) | Public\n- [x] Add Backup options(Verify using email)\n- [x] Disable Two Factor.\n\n## Passkey/ Passwordless Login\n\n- [x] Passkey/ Passwordless Login\n\n## Role Based Access\n\n- [x] Role Based Access | Protected\n\n\u003e Here, I used my domain to select the admin user. After that, the admin can add another admin\n\n## User Management (Admin)\n\n- [x] Admin Dashboard\n- [ ] Permission\n\n## Database sessions\n\n- [x] Database sessions checkout [db-session](https://github.com/patelvivekdev/drizzle-next-auth-turso/tree/db-session)\n\n## Emails\n\n- [ ] Send an email for every account change event and store the history.\n\n## Links\n\n- [Live Link JWT Sessions](https://authjs-template.patelvivek.dev)\n- [Live Link DB Sessions](https://authjs-template-db-sessions.patelvivek.dev)\n\n- [AuthJS](https://authjs.dev)\n- [Drizzle](https://drizzle.team)\n- [Turso](https://turso.dev)\n- [NextJs](https://nextjs.org)\n- [Magic Ui](https://magicui.design)\n- [patelvivek.dev](https://patelvivek.dev/projects/authjs-template-for-nextjs-developers)\n\n## Open In IDX\n\n\u003ca href=\"https://idx.google.com/import?url=https://github.com/patelvivekdev/drizzle-next-auth-turso\"\u003e\n  \u003cimg height=\"32\" alt=\"Open in IDX\" src=\"https://cdn.idx.dev/btn/open_dark_32@2x.png\"\u003e\n\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/patelvivekdev/drizzle-next-auth-turso?style=for-the-badge\" alt=\"Stars\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/forks/patelvivekdev/drizzle-next-auth-turso?style=for-the-badge\" alt=\"Forks\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/issues/patelvivekdev/drizzle-next-auth-turso?style=for-the-badge\" alt=\"Issues\" /\u003e\n  \u003c/div\u003e\n    Made with ❤️ by Vivek Patel\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatelvivekdev%2Fauthjs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatelvivekdev%2Fauthjs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatelvivekdev%2Fauthjs-template/lists"}