{"id":24874697,"url":"https://github.com/dirheimerb/next-auth","last_synced_at":"2025-03-27T02:15:51.810Z","repository":{"id":105234799,"uuid":"495234927","full_name":"dirheimerb/next-auth","owner":"dirheimerb","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-23T02:37:09.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T07:28:58.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dirheimerb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"open_collective":"nextauth","github":["balazsorban44"]}},"created_at":"2022-05-23T02:37:07.000Z","updated_at":"2022-05-23T02:37:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b12d8af-b34d-456e-a5ab-60c46bd8ea1c","html_url":"https://github.com/dirheimerb/next-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"nextauthjs/next-auth-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fnext-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fnext-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fnext-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirheimerb%2Fnext-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirheimerb","download_url":"https://codeload.github.com/dirheimerb/next-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245767360,"owners_count":20668826,"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":[],"created_at":"2025-02-01T07:28:12.353Z","updated_at":"2025-03-27T02:15:51.804Z","avatar_url":"https://github.com/dirheimerb.png","language":"TypeScript","funding_links":["https://opencollective.com/nextauth","https://github.com/sponsors/balazsorban44"],"categories":[],"sub_categories":[],"readme":"\u003e The example repository is maintained from a [monorepo](https://github.com/nextauthjs/next-auth/tree/main/apps/example-nextjs). Pull Requests should be opened against [`nextauthjs/next-auth`](https://github.com/nextauthjs/next-auth).\n\n\u003cp align=\"center\"\u003e\n   \u003cbr/\u003e\n   \u003ca href=\"https://next-auth.js.org\" target=\"_blank\"\u003e\u003cimg width=\"150px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /\u003e\u003c/a\u003e\n   \u003ch3 align=\"center\"\u003eNextAuth.js Example App\u003c/h3\u003e\n   \u003cp align=\"center\"\u003e\n   Open Source. Full Stack. Own Your Data.\n   \u003c/p\u003e\n   \u003cp align=\"center\" style=\"align: center;\"\u003e\n      \u003ca href=\"https://npm.im/next-auth\"\u003e\n        \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/next-auth?color=green\u0026label=next-auth\"\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://bundlephobia.com/result?p=next-auth-example\"\u003e\n        \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/next-auth?label=next-auth\" alt=\"Bundle Size\"/\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://www.npmtrends.com/next-auth\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dm/next-auth?label=next-auth%20downloads\" alt=\"Downloads\" /\u003e\n      \u003c/a\u003e\n      \u003ca href=\"https://npm.im/next-auth\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/npm-TypeScript-blue\" alt=\"TypeScript\" /\u003e\n      \u003c/a\u003e\n   \u003c/p\u003e\n\u003c/p\u003e\n\n## Overview\n\nNextAuth.js is a complete open source authentication solution.\n\nThis is an example application that shows how `next-auth` is applied to a basic Next.js app.\n\nThe deployed version can be found at [`next-auth-example.vercel.app`](https://next-auth-example.vercel.app)\n\n### About NextAuth.js\n\nNextAuth.js is an easy to implement, full-stack (client/server) open source authentication library originally designed for [Next.js](https://nextjs.org) and [Serverless](https://vercel.com). Our goal is to [support even more frameworks](https://github.com/nextauthjs/next-auth/issues/2294) in the future.\n\nGo to [next-auth.js.org](https://next-auth.js.org) for more information and documentation.\n\n\u003e *NextAuth.js is not officially associated with Vercel or Next.js.*\n\n## Getting Started\n\n### 1. Clone the repository and install dependencies\n\n```\ngit clone https://github.com/nextauthjs/next-auth-example.git\ncd next-auth-example\nnpm install\n```\n\n### 2. Configure your local environment\n\nCopy the .env.local.example file in this directory to .env.local (which will be ignored by Git):\n\n```\ncp .env.local.example .env.local\n```\n\nAdd details for one or more providers (e.g. Google, Twitter, GitHub, Email, etc).\n\n#### Database\n\nA database is needed to persist user accounts and to support email sign in. However, you can still use NextAuth.js for authentication without a database by using OAuth for authentication. If you do not specify a database, [JSON Web Tokens](https://jwt.io/introduction) will be enabled by default.\n\nYou **can** skip configuring a database and come back to it later if you want.\n\nFor more information about setting up a database, please check out the following links:\n\n* Docs: [next-auth.js.org/adapters/overview](https://next-auth.js.org/adapters/overview)\n* Adapters Repo: [nextauthjs/adapters](https://github.com/nextauthjs/adapters)\n\n### 3. Configure Authentication Providers\n\n1. Review and update options in `pages/api/auth/[...nextauth].js` as needed.\n\n2. When setting up OAuth, in the developer admin page for each of your OAuth services, you should configure the callback URL to use a callback path of `{server}/api/auth/callback/{provider}`.\n\n  e.g. For Google OAuth you would use: `http://localhost:3000/api/auth/callback/google`\n\n  A list of configured providers and their callback URLs is available from the endpoint `/api/auth/providers`. You can find more information at https://next-auth.js.org/configuration/providers/oauth\n\n3. You can also choose to specify an SMTP server for passwordless sign in via email.\n\n### 4. Start the application\n\nTo run your site locally, use:\n\n```\nnpm run dev\n```\n\nTo run it in production mode, use:\n\n```\nnpm run build\nnpm run start\n```\n\n### 5. Preparing for Production\n\nFollow the [Deployment documentation](https://next-auth.js.org/deployment)\n\n## Acknowledgements\n\n\u003ca href=\"https://vercel.com?utm_source=nextauthjs\u0026utm_campaign=oss\"\u003e\n\u003cimg width=\"170px\" src=\"https://raw.githubusercontent.com/nextauthjs/next-auth/canary/www/static/img/powered-by-vercel.svg\" alt=\"Powered By Vercel\" /\u003e\n\u003c/a\u003e\n\u003cp align=\"left\"\u003eThanks to Vercel sponsoring this project by allowing it to be deployed for free for the entire NextAuth.js Team\u003c/p\u003e\n\n## License\n\nISC\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Fnext-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirheimerb%2Fnext-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirheimerb%2Fnext-auth/lists"}