# Authenticating users in Astro using Neon Postgres and Lucia Auth

DevFeed: [Authenticating users in Astro using Neon Postgres and Lucia Auth](<https://devfeed.tech/articles/authenticating-users-in-astro-using-neon-postgres-and-lucia-auth-4996.md>)

Original publisher: [Read original article](<https://neon.com/blog/authenticating-users-in-astro-using-neon-postgres-and-lucia-auth>)

Author: Rishi Raj Jain

Published: 2024-04-12T19:47:52Z

Content type: tutorial

Language: en

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

Topics: [Astro](<https://devfeed.tech/topics/astro.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [Database](<https://devfeed.tech/topics/database.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Web platform](<https://devfeed.tech/topics/web-platform.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [Git](<https://devfeed.tech/topics/git.md>)

Tags: [astro](<https://devfeed.tech/tags/astro.md>), [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [community](<https://devfeed.tech/tags/community.md>), [database](<https://devfeed.tech/tags/database.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [git](<https://devfeed.tech/tags/git.md>), [guide](<https://devfeed.tech/tags/guide.md>), [html](<https://devfeed.tech/tags/html.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [ssl](<https://devfeed.tech/tags/ssl.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

## AI overview

A step-by-step tutorial for building user authentication APIs and HTML pages in an Astro application using Lucia Auth and Neon Postgres. It covers setting up a Neon database, configuring a pooled SSL connection, scaffolding the Astro project, and installing the required packages.

## Source excerpt

This guide covers the step-by-step process of building user authentication APIs and HTML pages in Astro application with Lucia Auth and Postgres, powered by Neon. User authentication provides a way to manage user identities and access control in your application. Upon completing...