From efc655de80e01bf45ab7077dea102f4571d78a72 Mon Sep 17 00:00:00 2001 From: Taesu <166604494+bytaesu@users.noreply.github.com> Date: Thu, 29 May 2025 13:31:38 +0900 Subject: [PATCH] docs: add missing trustedOrigins option (#2822) --- docs/content/docs/reference/options.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/content/docs/reference/options.mdx b/docs/content/docs/reference/options.mdx index 8a94f2dc..29b3caa1 100644 --- a/docs/content/docs/reference/options.mdx +++ b/docs/content/docs/reference/options.mdx @@ -42,6 +42,17 @@ export const auth = betterAuth({ Default: `/api/auth` +## `trustedOrigins` + +List of trusted origins. + +```ts +import { betterAuth } from "better-auth"; +export const auth = betterAuth({ + trustedOrigins: ["http://localhost:3000", "https://example.com"], +}) +``` + ## `secret` The secret used for encryption, signing, and hashing.