Integrating Better Auth with Astro framework
The guide outlines how to mount the Better Auth handler, create a client, and use middleware to protect routes within an Astro application.
Better Auth
https://better-auth.com/docsBetter Auth documentation provides guides for implementing authentication features like 2FA and OAuth, alongside integrating with frameworks and managing the Better Auth infrastructure. It also includes resources for AI integration and agentic workflows.
Works with
Use Better Auth Documentation to complete source-specific tasks, make informed decisions, and follow evidence-backed workflows.
The guide outlines how to mount the Better Auth handler, create a client, and use middleware to protect routes within an Astro application.
The documentation provides step-by-step instructions to obtain OAuth credentials from the Apple Developer Portal and configure the provider within Better Auth.
The documentation provides detailed steps for installing the 2FA plugin, configuring OTP/TOTP, and managing features like backup codes and trusted devices.
The reference explains the cause of this OAuth flow error and provides typical resolutions, including unlinking accounts or merging user profiles.
The guide provides instructions and best practices for developing a custom database adapter to extend Better Auth's compatibility with various data stores.
The guide details the necessary steps and considerations for upgrading Better Auth from 1.6 to 1.7, covering changes across various components like OAuth, SAML, and 2FA.
A quick look at the main areas Bulkgrid has indexed and keeps ready for AI search, MCP, extraction, and change detection.
/docs/content/docs/plugins
45 pages
Implements various authentication and user management features, such as two-factor authentication, administrative controls, and API key management, to enhance application security and functionality.
/docs/content/docs/authentication
38 pages
Guides users through setting up and integrating various OAuth and traditional authentication providers, such as Apple, Atlassian, and email/password, into their applications.
/docs/content/docs/reference
27 pages
Offers reference material, including guides for contributing to Better Auth, frequently asked questions, security information, and detailed explanations for various authentication errors.
/docs/content/docs/reference/errors
20 pages
Details common authentication errors, such as account linking issues or invalid credentials, providing explanations of their causes and practical steps for resolution.
/docs/content/docs/integrations
19 pages
Provides guides for integrating Better Auth with various web frameworks and platforms, including Astro, Convex, Electron, and Express, to enable authentication in diverse application environments.
/docs/content/docs/concepts
13 pages
Explains fundamental concepts of Better Auth, such as API interactions, CLI usage, client-side operations, database integration, and OAuth mechanisms, to provide a foundational understanding of the system.
/docs/content/docs/guides
12 pages
Offers practical guides for various tasks, including upgrading Better Auth versions, migrating from other authentication solutions, creating custom database adapters, and optimizing performance.
/docs/content/docs/adapters
9 pages
/docs/content/docs/infrastructure
7 pages
Introduces Better Auth Infrastructure as a paid service, detailing its key features like the management dashboard, audit logging, and security plugins, to extend and manage authentication systems.
/docs/content/docs/examples
5 pages
Provides practical code examples for integrating Better Auth with popular frontend frameworks like Astro, Next.js, and SvelteKit, demonstrating various authentication features.
/docs/content/docs/ai-resources
3 pages
Offers resources designed to integrate Better Auth into AI-driven workflows, including tools like AI Chat, LLMs.txt for machine-friendly indexing, MCP server, and portable instruction files for agents.
/docs/content/docs/infrastructure/plugins
3 pages
Details infrastructure-specific plugins like Audit Logs, Dashboard, and Security Plugin (Sentinel), which enhance monitoring, management, and protection of authentication events.
Bulkgrid turns important websites into fresh, queryable, AI-ready sources without making teams maintain the infrastructure.
Retrieve the right source context instead of sending large pages, pasted docs, or noisy search results into every prompt.
Ground responses in current, source-backed evidence to reduce hallucinations and avoid relying on stale model memory.
Keep important websites automatically recrawled and updated so AI is not working from old content.
Search already-indexed source content immediately instead of crawling pages at question time.
Bulkgrid handles crawling, rendering, retries, storage, indexing, recrawls, and change detection.
See when pages are added, removed, updated, or fail so teams can react without checking manually.
Search and use knowledge from Better Auth in ChatGPT, Claude, Cursor, and any MCP-compatible client.