# Next.js authentication using Clerk, Drizzle ORM, and Neon

DevFeed: [Next.js authentication using Clerk, Drizzle ORM, and Neon](<https://devfeed.tech/articles/next-js-authentication-using-clerk-drizzle-orm-and-neon-5694.md>)

Original publisher: [Read original article](<https://neon.com/blog/nextjs-authentication-using-clerk-drizzle-orm-and-neon>)

Author: Evan Shortiss

Published: 2024-04-01T18:11:47Z

Content type: tutorial

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Authentication](<https://devfeed.tech/topics/authentication.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [Database](<https://devfeed.tech/topics/database.md>), [Drizzle](<https://devfeed.tech/topics/drizzle.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [Discord](<https://devfeed.tech/topics/discord.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [community](<https://devfeed.tech/tags/community.md>), [database](<https://devfeed.tech/tags/database.md>), [discord](<https://devfeed.tech/tags/discord.md>), [drizzle](<https://devfeed.tech/tags/drizzle.md>), [google](<https://devfeed.tech/tags/google.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

## AI overview

This tutorial explains how to add authentication and authorization to a Next.js application with Clerk. It also shows how to use Clerk's Next.js helpers to access user details and Drizzle ORM to store non-PII data in Neon's serverless Postgres, with deployment to Vercel.

## Source excerpt

Building an effective authentication and authorization system into your application is as equally fraught with challenges as managing database infrastructure. As the old wisdom says, never "roll your own" regarding authentication and authorization. In addition to the effort requi...