{"id":20340858,"url":"https://github.com/nbaua/next-google-auth","last_synced_at":"2026-04-14T19:31:58.291Z","repository":{"id":183227099,"uuid":"669772583","full_name":"nbaua/next-google-auth","owner":"nbaua","description":"Project demonstrating the authentication flow using Next JS for react. Integrate google authentication (or any other provider) easily.","archived":false,"fork":false,"pushed_at":"2023-07-28T11:01:14.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T06:39:41.794Z","etag":null,"topics":["authentication","google-authentication","next-auth","next-auth-provider","nextjs","nextjs13","nodejs","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/nbaua.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-07-23T11:34:37.000Z","updated_at":"2023-07-24T04:31:42.000Z","dependencies_parsed_at":"2024-11-15T01:03:01.098Z","dependency_job_id":null,"html_url":"https://github.com/nbaua/next-google-auth","commit_stats":null,"previous_names":["nbaua/next-google-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nbaua/next-google-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaua%2Fnext-google-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaua%2Fnext-google-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaua%2Fnext-google-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaua%2Fnext-google-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbaua","download_url":"https://codeload.github.com/nbaua/next-google-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbaua%2Fnext-google-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication","google-authentication","next-auth","next-auth-provider","nextjs","nextjs13","nodejs","reactjs"],"created_at":"2024-11-14T21:24:20.369Z","updated_at":"2026-04-14T19:31:58.277Z","avatar_url":"https://github.com/nbaua.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## Project Details\n\n### Setup Auth Provider (Google)\n\nSign in to Google Developer Console with your valid gmail.com account.\n\nUpon sign-in you would be redirected to https://console.cloud.google.com\n\nYou would require to create a new project (name it like NextAuth) and after creating the project, click on the left side menu.\n\nClick on `API \u0026 Services` option \u003e `OAuth Consent Screen`. Click on 'CREATE' button.\n\nEnter details like App Name (i.e. next-google-auth) etc.\n\n### Get Keys From Provider(Google)\n\nClick on `Credentials` option on left menu, and click on `Create Credentials` menu and `OAuth client ID` menu item.\n\nSelect Application type as `Web Application`\n\nEnter url details for `Authorized JavaScript origins` and `Authorized redirect URIs` (For testing purposes http://localhost:3000 should work.)\n\nAfter saving this details - once again add the following Url under `Authorized redirect URIs` details:\nhttp://localhost:3000/api/auth/callback/:provider (assuming http://localhost:3000 is the domain for this test application).\n\nNote: If the above does not work you can add google as a provider - hard coded as under:\nhttp://localhost:3000/api/auth/callback/google\n\nHit the CREATE button.\n\nGet the Client Id and Security Key and store it in the `.env file for further use.\n\n### Check the Next Auth JS\n\nCheck the `Add authentication in minutes!` section on https://next-auth.js.org/ url for quick overview.\n\nVisit the url: https://next-auth.js.org/getting-started/example for more details on how to implement the authentication flow in Next Js/React App using the next-auth.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbaua%2Fnext-google-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbaua%2Fnext-google-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbaua%2Fnext-google-auth/lists"}