docs: add missing trustedOrigins option (#2822)

This commit is contained in:
Taesu
2025-05-29 13:31:38 +09:00
committed by GitHub
parent cb5de99501
commit efc655de80

View File

@@ -42,6 +42,17 @@ export const auth = betterAuth({
Default: `/api/auth` 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` ## `secret`
The secret used for encryption, signing, and hashing. The secret used for encryption, signing, and hashing.