{"id":19764631,"url":"https://github.com/sarmad426/nextjs-auth-v5","last_synced_at":"2025-07-18T17:31:15.249Z","repository":{"id":218696417,"uuid":"747122893","full_name":"Sarmad426/nextjs-auth-v5","owner":"Sarmad426","description":"Next.js app authentication with auth-v5. ","archived":false,"fork":false,"pushed_at":"2024-03-20T14:30:43.000Z","size":201,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T21:46:11.658Z","etag":null,"topics":["authjs","nextjs","shadcn-ui","typescript"],"latest_commit_sha":null,"homepage":"","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/Sarmad426.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":"2024-01-23T10:06:13.000Z","updated_at":"2024-09-14T09:25:18.000Z","dependencies_parsed_at":"2024-01-23T11:28:16.542Z","dependency_job_id":"85888ef5-c51d-48d0-a3b6-d07ce201f669","html_url":"https://github.com/Sarmad426/nextjs-auth-v5","commit_stats":null,"previous_names":["sarmad426/nextjs-auth-v5"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sarmad426/nextjs-auth-v5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fnextjs-auth-v5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fnextjs-auth-v5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fnextjs-auth-v5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fnextjs-auth-v5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sarmad426","download_url":"https://codeload.github.com/Sarmad426/nextjs-auth-v5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sarmad426%2Fnextjs-auth-v5/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265801634,"owners_count":23830448,"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","nextjs","shadcn-ui","typescript"],"created_at":"2024-11-12T04:14:29.708Z","updated_at":"2025-07-18T17:31:15.221Z","avatar_url":"https://github.com/Sarmad426.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication in Next.js\n\nAuthenticate **Next.js** app using `next-auth`.\n\n## This Repository Covers\n\n- Authentication\n- Next.js Middleware\n- User Management\n- Role Management\n- Sessions\n- Credential Providers (Google, Github)\n- Email Verification\n- 2 Factor Authentication\n- Forgot Password\n\n## Tech Stack\n\n- Next.js 14 (Server Actions)\n- Typescript\n- Shadcn-ui\n- Tailwind CSS\n- Prisma\n- PostgreSQL\n- **Auth v5**\n\n### Other Packages\n\n**Auth js:**\n\n```npm install next-auth@beta```\n\nThis is the version '^5.0.0-beta.5'. It's currently in beta. Check out the\nofficical docs. \u003chttps://authjs.dev/guides/\u003e\n\n- Adopt Prisma with Auth.js\n\n   ```npm i @auth/prisma-adapter```\n\n- Bcrypt for Password Hashing\n\n    ```npm i bcryptjs @types/bcryptjs```\n\n- Initialize `shadcn-ui`\n    ```npx shadcn-ui@latest init```\n\n- Add the following components\n    ```npx shadcn-ui@latest add form input button```\n\n\u003e This will automatically add the required npm packages to use forms.\n\u003e If you want to checkout implementation of forms using shadcn-ui, checkout the\n\u003e [documentation](https://github.com/Sarmad426/Documentation/tree/master/Shadcn-zod-forms).\n\u003e if you want to install manually.\n\n```npm i zod react-hook-form@latest```\n\n- For other Next-js installations\n\nCheck out the following resource.\n\n[Documentation](https://github.com/Sarmad426/Documentation/tree/master/Nextjs-project-installations)\n\n- For `Prisma`\n\n[Documentation](https://github.com/sarmad426/Documentation/tree/master/prisma)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarmad426%2Fnextjs-auth-v5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarmad426%2Fnextjs-auth-v5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarmad426%2Fnextjs-auth-v5/lists"}