Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wpcodevo/nextauth-nextjs14-drizzle
In this tutorial, we'll cover the complete process of integrating Drizzle ORM with NextAuth v5 in Next.js 14.
https://github.com/wpcodevo/nextauth-nextjs14-drizzle
drizzle drizzle-orm nextauth nextauthjs nextjs14 postgres
Last synced: 25 days ago
JSON representation
In this tutorial, we'll cover the complete process of integrating Drizzle ORM with NextAuth v5 in Next.js 14.
- Host: GitHub
- URL: https://github.com/wpcodevo/nextauth-nextjs14-drizzle
- Owner: wpcodevo
- Created: 2024-02-07T22:03:43.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-10T10:38:59.000Z (11 months ago)
- Last Synced: 2024-05-15T15:32:44.066Z (7 months ago)
- Topics: drizzle, drizzle-orm, nextauth, nextauthjs, nextjs14, postgres
- Language: TypeScript
- Homepage: https://codevoweb.com/setting-up-drizzle-orm-with-nextauth-in-nextjs-14/
- Size: 95.7 KB
- Stars: 8
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setting up Drizzle ORM with NextAuth.js in Next.js 14
In this tutorial, we'll cover the complete process of integrating Drizzle ORM with NextAuth v5 in Next.js 14.
![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)
## Topics Covered
- Running the Project on Your Machine
- Demo of the Application
- Setting Up a Serverless PostgreSQL Database
- Creating the NextAuth SQL Tables with Drizzle ORM
- Creating the Database Schemas
- Connecting to the Serverless Database
- Performing the Database Migration and Synchronization
- Initializing NextAuth in the Next.js 14 Project
- Setting up Credentials Authentication with NextAuth
- Setting up Google and GitHub OAuth with NextAuth
- Retrieving the Session Data in Different Locations
- In a React Server Component
- In a Next.js Route File
- In a React Client Component
- Modifying the Session Data and JWT Payload
- Protecting Routes in Different Locations
- In a Next.js Route File
- In a React Server Component
- In a React Client Component
- In a Next.js Middleware File
- ConclusionRead 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/)