From 8087db2adbf34e09facacf0207248f0485069d30 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Sun, 1 Mar 2026 16:40:40 -0800 Subject: [PATCH] chore: update docs --- .../infrastructure/plugins/audit-logs.mdx | 4 +- .../docs/infrastructure/plugins/dashboard.mdx | 4 +- .../docs/infrastructure/plugins/sentinel.mdx | 42 ------------------- 3 files changed, 2 insertions(+), 48 deletions(-) diff --git a/docs/content/docs/infrastructure/plugins/audit-logs.mdx b/docs/content/docs/infrastructure/plugins/audit-logs.mdx index 031e975712..aa3f83dc92 100644 --- a/docs/content/docs/infrastructure/plugins/audit-logs.mdx +++ b/docs/content/docs/infrastructure/plugins/audit-logs.mdx @@ -15,9 +15,7 @@ import { dash } from "@better-auth/infra"; export const auth = betterAuth({ plugins: [ - dash({ - apiKey: process.env.BETTER_AUTH_API_KEY, - }), + dash(), ], }); ``` diff --git a/docs/content/docs/infrastructure/plugins/dashboard.mdx b/docs/content/docs/infrastructure/plugins/dashboard.mdx index 60baeb779f..7e8fcdc715 100644 --- a/docs/content/docs/infrastructure/plugins/dashboard.mdx +++ b/docs/content/docs/infrastructure/plugins/dashboard.mdx @@ -13,9 +13,7 @@ import { dash } from "@better-auth/infra"; export const auth = betterAuth({ plugins: [ - dash({ - apiKey: process.env.BETTER_AUTH_API_KEY, - }), + dash(), ], }); ``` diff --git a/docs/content/docs/infrastructure/plugins/sentinel.mdx b/docs/content/docs/infrastructure/plugins/sentinel.mdx index 19d945152b..274ad82aa5 100644 --- a/docs/content/docs/infrastructure/plugins/sentinel.mdx +++ b/docs/content/docs/infrastructure/plugins/sentinel.mdx @@ -12,9 +12,6 @@ import { sentinel } from "@better-auth/infra"; export const auth = betterAuth({ plugins: [ sentinel({ - apiUrl: process.env.BETTER_AUTH_API_URL, - kvUrl: process.env.BETTER_AUTH_KV_URL, - apiKey: process.env.BETTER_AUTH_API_KEY, security: { // Configure security features here }, @@ -334,45 +331,6 @@ The client automatically includes a visitor ID in requests via the `X-Visitor-ID When auto-solving is enabled, solved challenges are sent via the `X-PoW-Solution` header. -## Protected Endpoints - -Sentinel protects the following authentication endpoints: - -### Sign-In Endpoints -- `/sign-in/email` -- `/sign-in/username` -- `/sign-in/email-otp` -- `/sign-in/social` -- `/sign-in/passkey` -- `/sign-in/magic-link` -- `/sign-in/sso` -- `/sign-in/anonymous` - -### Sign-Up Endpoints -- `/sign-up/email` - -### Password Endpoints -- `/forget-password` -- `/reset-password` -- `/change-password` -- `/set-password` - -### Two-Factor Endpoints -- `/two-factor/verify-totp` -- `/two-factor/verify-backup` -- `/two-factor/verify-otp` - -### OTP Endpoints -- `/email-otp/send` -- `/phone/send-otp` - -### Other Sensitive Endpoints -- `/magic-link/verify` -- `/organization/create` -- `/change-email` -- `/link-social` -- `/passkey/add` - ## Security Events Sentinel tracks the following security event types: