{"id":15663660,"url":"https://github.com/t3dotgg/next-auth-v4-prisma-demo","last_synced_at":"2025-05-06T18:15:31.456Z","repository":{"id":37541941,"uuid":"403442074","full_name":"t3dotgg/next-auth-v4-prisma-demo","owner":"t3dotgg","description":"Next.js starter including Typescript, NextAuth.js and Prisma. SQLite and Github OAuth used by default, easy to change :)","archived":false,"fork":false,"pushed_at":"2021-09-08T06:45:30.000Z","size":215,"stargazers_count":16,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T01:41:16.891Z","etag":null,"topics":["authorization","nextjs","prisma","typescript"],"latest_commit_sha":null,"homepage":"","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/t3dotgg.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}},"created_at":"2021-09-06T00:33:31.000Z","updated_at":"2024-08-18T17:03:13.000Z","dependencies_parsed_at":"2022-08-08T20:31:04.225Z","dependency_job_id":null,"html_url":"https://github.com/t3dotgg/next-auth-v4-prisma-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3dotgg%2Fnext-auth-v4-prisma-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3dotgg%2Fnext-auth-v4-prisma-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3dotgg%2Fnext-auth-v4-prisma-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3dotgg%2Fnext-auth-v4-prisma-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t3dotgg","download_url":"https://codeload.github.com/t3dotgg/next-auth-v4-prisma-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252741475,"owners_count":21797027,"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":["authorization","nextjs","prisma","typescript"],"created_at":"2024-10-03T13:39:14.347Z","updated_at":"2025-05-06T18:15:31.426Z","avatar_url":"https://github.com/t3dotgg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js + NextAuth.js + Prisma.io + Typescript demo\n\nThis is roughly half of the stack detailed on [init.tips](https://init.tips/).\n\nWe're using the [NextAuth.js v4 Beta](https://twitter.com/nextauthjs/status/1434508619970666506).\n\nWe loaded up most of the files with comments describing what they do and how to expand upon them. Be sure to check out:\n\n- [`prisma/schema.prisma`](./prisma/schema.prisma)\n- [`pages/index.tsx`](./pages/index.tsx)\n- [`pages/_app.tsx`](./pages/_app.tsx)\n- [`pages/api/auth/\\[...nextauth\\].ts`](./pages/api/auth/[...nextauth].ts)\n\n## Getting Started\n\n### Set up Github OAuth\n\nIf you will be using a different auth provider, you can skip this section\n\n[`Create an OAuth app on Github`](https://github.com/settings/applications/new)\n\nMake sure you have a [valid authorization callback url](https://next-auth.js.org/configuration/providers/oauth-provider#how-to) for `http://localhost:3000`.\n\nYour setup should look something like this\n![Screenshot of Github Oauth App setup](./docs/assets/setup-screenshot.png)\n\nCreate a `.env` file in the root of your project, with your Github OAuth Client ID and Secret generated above:\n\n- GITHUB_CLIENT_ID\n- GITHUB_CLIENT_SECRET\n\n### Run locally\n\nInstall and run\n\n```bash\nnpm i\nnpx prisma migrate dev\nnpm run dev\n```\n\n## Notes\n\nIf you would like to install the same packages here and replicate this on your own, look out for this bug when you intall the beta versions of next-auth v4:\nhttps://github.com/nextauthjs/next-auth/issues/2675\n\nIt should be resolved very soon. Will try to update this when it is :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3dotgg%2Fnext-auth-v4-prisma-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft3dotgg%2Fnext-auth-v4-prisma-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3dotgg%2Fnext-auth-v4-prisma-demo/lists"}