Better Auth Astro is a web application built using Astro, Drizzle ORM, and Better Auth for implementing authentication and session management. The application demonstrates user authentication, including sign-up, sign-in, and session handling. 🛡️🌍🔐
- User Sign-Up and Sign-In
- Session Management
- Secure Password Handling
- Email Verification Status Display
- User Profile Display
- Astro: A modern web framework for building fast, content-focused websites.
- Drizzle ORM: A lightweight ORM for interacting with SQLite databases.
- Better Auth: A library for easy authentication setup and management.
- src/components: Contains the UI components used in the project, including the Welcome component for user greetings.
- src/db: Database configuration and schema definitions using Drizzle ORM.
- src/layouts: Layout files used for consistent styling across pages.
- src/pages: Application pages like the index, signin, and signup pages.
- src/lib: Authentication logic and client setup.
- drizzle: Database migrations and related files.
-
Clone the repository:
git clone /~https://github.com/devgauravjatt/better-auth-astro5
-
Navigate to the project directory:
cd better-auth-astro
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
Contributions are welcome! Feel free to open issues or submit pull requests to help improve this project. 👨💻👷️♂️🌐
This project is licensed under the MIT License. See the LICENSE
file for details. 🛡️🔗🔒
- Thanks to the Astro, Drizzle ORM, and Better Auth communities for providing excellent tools and support. 📚👨🛠️🌐