mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 08:31:37 -05:00
Bumps [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) from 4.15.9 to 4.16.1. - [Release notes](https://github.com/withastro/astro/releases) - [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md) - [Commits](https://github.com/withastro/astro/commits/astro@4.16.1/packages/astro) --- updated-dependencies: - dependency-name: astro dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Astro Example
This is an example of how to use Better Auth with Astro. It uses Solid for building the components.
Implements the following features: Email & Password . Social Sign-in with Google . Passkeys . Email Verification . Password Reset . Two Factor Authentication . Profile Update . Session Management
How to run
-
Clone the code sandbox (or the repo) and open it in your code editor
-
Provide .env file with the following variables
GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= BETTER_AUTH_SECRET=//if you don't have these, you can get them from the google developer console. If you don't want to use google sign-in, you can remove the google config from the
auth.tsfile. -
Run the following commands
pnpm install pnpm run dev -
Open the browser and navigate to
http://localhost:3000