{"id":24538387,"url":"https://github.com/weehongkoh/nextjs-app-router-authjs","last_synced_at":"2025-10-24T20:35:42.725Z","repository":{"id":169792308,"uuid":"645832180","full_name":"weehongkoh/nextjs-app-router-authjs","owner":"weehongkoh","description":"NextJs 15 Boilerplate with Auth.js (NextAuth) Library","archived":false,"fork":false,"pushed_at":"2025-03-14T05:30:43.000Z","size":341,"stargazers_count":103,"open_issues_count":0,"forks_count":18,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T01:12:13.021Z","etag":null,"topics":["authjs","nextauth","nextjs-app-router","nextjs-boilerplate","nextjs14","nextjs15","nextjs15-typescript"],"latest_commit_sha":null,"homepage":"https://nextjs-app-router-nextauth.vercel.app","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/weehongkoh.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}},"created_at":"2023-05-26T14:36:05.000Z","updated_at":"2025-03-26T19:01:43.000Z","dependencies_parsed_at":"2024-02-09T05:32:17.143Z","dependency_job_id":"7aea9665-f9e7-4dad-a21f-5c9f8bc4ea17","html_url":"https://github.com/weehongkoh/nextjs-app-router-authjs","commit_stats":null,"previous_names":["weehongayden/nextjs-13-nextauth","weehongayden/nextjs-app-router-nextauth","weehongkoh/nextjs-app-router-nextauth","weehongkoh/nextjs-app-router-authjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weehongkoh%2Fnextjs-app-router-authjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weehongkoh%2Fnextjs-app-router-authjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weehongkoh%2Fnextjs-app-router-authjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weehongkoh%2Fnextjs-app-router-authjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weehongkoh","download_url":"https://codeload.github.com/weehongkoh/nextjs-app-router-authjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423512,"owners_count":20936626,"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-app-router","nextjs-boilerplate","nextjs14","nextjs15","nextjs15-typescript"],"created_at":"2025-01-22T15:07:09.165Z","updated_at":"2025-10-24T20:35:42.707Z","avatar_url":"https://github.com/weehongkoh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NextJs 15 App Router and Auth.js (Next Auth) Boilerplate\n\n\u003cp align=\"center\"\u003e\n    \u003cimg \n        src=\"https://github.com/weehongayden/nextjs-app-router-nextauth/assets/105431607/9eba22f7-a057-45fa-b819-7036fd96b5f4\" \n        alt=\"NextJs 15 App Router and Auth.js (Next Auth)\" \n    /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://nextjs-app-router-nextauth.vercel.app/\"\u003eDemo Link\u003c/a\u003e\u003c/p\u003e\n\nThis is a NextJs 15 App Router boilerplate that uses the Auth.js (Next Auth) library.\n\nThe current repository includes a database adapter, which increases the complexity of the code.\n\n## Latest Implementation\n- 26-07-2025 - Upgrade package to latest version\n- 14-03-2025 - Upgrade package ESLint 9, TailwindCSS 4, etc\n- 18-01-2025 - Upgrade to NextJs 15 and Auth.js (Next Auth)\n- 29-08-2024 - Add Auth0 Provider\n- 08-06-2024 - Add login credential on Custom Login\n- 04-05-2024 - Add database adapter on Custom Login\n- 06-03-2024 - Update the Landing Page and Custom Login Page\n- 06-03-2024 - Upgrade NPM Package to Latest Version\n\n## Features\n\n- Providers\n    - [x] Google\n    - [x] Discord\n    - [x] Auth0\n- [x] Protected Page\n- [x] NextJs Middleware\n- [x] Database Adapter (PostgreSQL and Hasura)\n\n## How to Use?\n\nClone this repository.\n\nCopy the `.env.example` and rename it as `.env` .\nInsert the value to respective field\n\nRun the following command to generate `NEXTAUTH_SECRET`, `openssl rand -base64 32`.\n\n```\nNEXTAUTH_URL=\nNEXTAUTH_SECRET=\n\nAUTH_GOOGLE_ID=\nAUTH_GOOGLE_SECRET=\n\nAUTH_DISCORD_ID=\nAUTH_DISCORD_SECRET=\n\nAUTH_AUTH0_ID=\nAUTH_AUTH0_SECRET=\nAUTH_AUTH0_ISSUER=\n\nAUTH_HASURA_GRAPHQL=\nAUTH_HASURA_SECRET=\n```\n\n### Reference\n- [Auth.js](https://authjs.dev/getting-started/installation?framework=Next.js)\n- [YouTube | How To Set Up Next Auth 5 in Next.js 15 [ project code included ] ](https://www.youtube.com/watch?v=xHQQ5I7E_H8\u0026t=322s)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweehongkoh%2Fnextjs-app-router-authjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweehongkoh%2Fnextjs-app-router-authjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweehongkoh%2Fnextjs-app-router-authjs/lists"}