{"id":21801048,"url":"https://github.com/wpcodevo/nextauth-nextjs14-drizzle","last_synced_at":"2025-04-13T18:30:25.367Z","repository":{"id":221429273,"uuid":"754354071","full_name":"wpcodevo/nextauth-nextjs14-drizzle","owner":"wpcodevo","description":"In this tutorial, we'll cover the complete process of integrating Drizzle ORM with NextAuth v5 in Next.js 14.","archived":false,"fork":false,"pushed_at":"2024-02-10T10:38:59.000Z","size":98,"stargazers_count":23,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T09:11:48.513Z","etag":null,"topics":["drizzle","drizzle-orm","nextauth","nextauthjs","nextjs14","postgres"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/setting-up-drizzle-orm-with-nextauth-in-nextjs-14/","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/wpcodevo.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}},"created_at":"2024-02-07T22:03:43.000Z","updated_at":"2025-02-27T10:17:17.000Z","dependencies_parsed_at":"2024-02-10T11:28:28.272Z","dependency_job_id":"be607808-7521-45f8-826a-daeeaab1f040","html_url":"https://github.com/wpcodevo/nextauth-nextjs14-drizzle","commit_stats":null,"previous_names":["wpcodevo/nextauth-nextjs14-drizzle"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnextauth-nextjs14-drizzle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnextauth-nextjs14-drizzle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnextauth-nextjs14-drizzle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Fnextauth-nextjs14-drizzle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/nextauth-nextjs14-drizzle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760207,"owners_count":21157309,"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":["drizzle","drizzle-orm","nextauth","nextauthjs","nextjs14","postgres"],"created_at":"2024-11-27T11:15:56.609Z","updated_at":"2025-04-13T18:30:25.330Z","avatar_url":"https://github.com/wpcodevo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting up Drizzle ORM with NextAuth.js in Next.js 14\n\nIn this tutorial, we'll cover the complete process of integrating Drizzle ORM with NextAuth v5 in Next.js 14.\n\n![Setting up Drizzle ORM with NextAuth.js in Next.js 14](https://codevoweb.com/wp-content/uploads/2024/02/Setting-up-Drizzle-ORM-with-NextAuth.js-in-Next.js-14.webp)\n\n## Topics Covered\n\n- Running the Project on Your Machine\n- Demo of the Application\n- Setting Up a Serverless PostgreSQL Database\n- Creating the NextAuth SQL Tables with Drizzle ORM\n  - Creating the Database Schemas\n  - Connecting to the Serverless Database\n  - Performing the Database Migration and Synchronization\n- Initializing NextAuth in the Next.js 14 Project\n- Setting up Credentials Authentication with NextAuth\n- Setting up Google and GitHub OAuth with NextAuth\n- Retrieving the Session Data in Different Locations\n  - In a React Server Component\n  - In a Next.js Route File\n  - In a React Client Component\n- Modifying the Session Data and JWT Payload\n- Protecting Routes in Different Locations\n  - In a Next.js Route File\n  - In a React Server Component\n  - In a React Client Component\n  - In a Next.js Middleware File\n- Conclusion\n\n\nRead the entire article here: [https://codevoweb.com/setting-up-drizzle-orm-with-nextauth-in-nextjs-14/](https://codevoweb.com/setting-up-drizzle-orm-with-nextauth-in-nextjs-14/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Fnextauth-nextjs14-drizzle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Fnextauth-nextjs14-drizzle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Fnextauth-nextjs14-drizzle/lists"}