mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-25 00:22:43 -05:00
docs: add missing trustedOrigins option (#2822)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user