#How can I use astro db with Lucia?
3 messages · Page 1 of 1 (latest)
Hi @fierce heart. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Astro DB and Lucia are two separate tools that can be used within the Astro ecosystem.
Astro DB is a fully-managed SQL database designed for Astro. You can add Astro DB to a new or existing Astro project with the @astrojs/db integration. Here's how you can install it:
npx astro add db
or
pnpm astro add db
or
yarn astro add db
You can find more details about Astro DB in the Astro DB guide (https://docs.astro.build/en/guides/astro-db/).
On the other hand, Lucia is a framework-agnostic, session-based authentication library with great Astro support. You can install Lucia using the package manager of your choice:
npm install lucia
or
pnpm add lucia
or
yarn add lucia
You can follow Lucia’s complete Astro tutorials to add username and password authentication (https://lucia-auth.com/tutorials/username-and-password/astro) or GitHub OAuth (https://lucia-auth.com/tutorials/github-oauth/astro) to your Astro project.