Files
better-auth/examples/astro-example
dependabot[bot] ff727ba11e chore(deps): bump solid-js in /examples/astro-example (#1574)
Bumps [solid-js](https://github.com/solidjs/solid) from 1.8.23 to 1.9.4.
- [Release notes](https://github.com/solidjs/solid/releases)
- [Changelog](https://github.com/solidjs/solid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/solidjs/solid/compare/v1.8.23...v1.9.4)

---
updated-dependencies:
- dependency-name: solid-js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 21:54:09 +03:00
..
2024-09-26 08:14:28 +03:00
2024-09-24 09:23:50 +03:00
2025-02-16 16:10:02 +03:00
2024-09-24 09:23:50 +03:00
2024-09-26 08:14:28 +03:00
2024-09-26 08:14:28 +03:00
2024-09-24 09:23:50 +03:00
2024-09-28 01:53:01 +03:00
2024-09-26 08:14:28 +03:00
2024-09-25 00:12:41 +03:00

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

  1. Clone the code sandbox (or the repo) and open it in your code editor

  2. 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.ts file.

  3. Run the following commands

    pnpm install
    pnpm run dev
    
  4. Open the browser and navigate to http://localhost:3000