{"repo":"HiDeoo/starlight-better-auth-example","free":true,"listed":false,"github":"https://github.com/HiDeoo/starlight-better-auth-example","clone":"git clone https://github.com/HiDeoo/starlight-better-auth-example.git","description":"Demonstration project using the Better Auth library to add authentication to a Starlight project","language":"Astro","stars":38,"topics":["astro","authentication","better-auth","documentation","starlight"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"starlight-better-auth-example 🔐 Demonstration project using the Better Auth library to add authentication to a Starlight project. [!NOTE] This repository is shared for demonstration purposes only, written in a limited amount of time, and is not intended to be used as a production-ready application. The goal is to demonstrate how one might use the Better Auth library in a Starlight application to add authentication and secure some content behind a login form. [!NOTE] The Better Auth library is still in beta and not yet production-ready. Features This repository contains a basic example of a Starlight project with authentication implemented using the Better Auth library. Users can create an account, sign in, and sign out. Some pages are protected and require the user to be authenticated to access them or even be visible in the documentation sidebar. - All forms are implemented using Astro Actions. - Authentication is handled by the Better Auth library. - Better Auth requires a database connection to store data like users, sessions, and more. This example uses SQLite for simplicity but can be replaced with any other database, dialect or adapter supported by Better Auth. - The project use on-demand rendering for all pages so that protected pages are not rendered when the user is not authenticated. - The Astro Node.js adapter is used in this example. Run the example 1. The project requires various environment variables to be set. Duplicate the .env.example file and rename it to .","default_branch":null,"files":null,"tree":[],"storefront":"/r/HiDeoo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/HiDeoo/starlight-better-auth-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}